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 : 2656000 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 (2659563) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2659563) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21308578 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2659563'] with mtr_portfolio_ids : ['21308578'] and first list_photo_ids : [] new path : /proc/2656000/ Name: python3 Umask: 0002 State: R (running) Tgid: 2656000 Ngid: 0 Pid: 2656000 PPid: 2655999 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2656000 NSpid: 2656000 NSpgid: 2651927 NSsid: 2651927 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97708 kB VmRSS: 97708 kB RssAnon: 59764 kB RssFile: 37944 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 612 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 73 nonvoluntary_ctxt_switches: 123 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2656000', 'Ngid': '0', 'Pid': '2656000', 'PPid': '2655999', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2656000', 'NSpid': '2656000', 'NSpgid': '2651927', 'NSsid': '2651927', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97708 kB', 'VmRSS': '97708 kB', 'RssAnon': '59764 kB', 'RssFile': '37944 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '612 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '73', 'nonvoluntary_ctxt_switches': '123'} ('datou_batch_current', '2656000', '1106844', '0', '1106844', '865592', '97708', b'', 'marlene', '2659563') 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 (21308578) 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 (2659563 ) ) 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 (21308578) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1343192095, 'portfolio_id': 21308578}, {'photo_id': 1343192007, 'portfolio_id': 21308578}, {'photo_id': 1343191930, 'portfolio_id': 21308578}, {'photo_id': 1343191899, 'portfolio_id': 21308578}, {'photo_id': 1343191894, 'portfolio_id': 21308578}, {'photo_id': 1343191890, 'portfolio_id': 21308578}, {'photo_id': 1343191264, 'portfolio_id': 21308578}, {'photo_id': 1343191187, 'portfolio_id': 21308578}, {'photo_id': 1343191098, 'portfolio_id': 21308578}, {'photo_id': 1343191000, 'portfolio_id': 21308578}, {'photo_id': 1343190726, 'portfolio_id': 21308578}, {'photo_id': 1343190690, 'portfolio_id': 21308578}, {'photo_id': 1343190660, 'portfolio_id': 21308578}, {'photo_id': 1343190623, 'portfolio_id': 21308578}, {'photo_id': 1343190558, 'portfolio_id': 21308578}, {'photo_id': 1343190503, 'portfolio_id': 21308578}, {'photo_id': 1343190202, 'portfolio_id': 21308578}, {'photo_id': 1343190156, 'portfolio_id': 21308578}, {'photo_id': 1343190085, 'portfolio_id': 21308578}, {'photo_id': 1343190020, 'portfolio_id': 21308578}, {'photo_id': 1343189663, 'portfolio_id': 21308578}, {'photo_id': 1343189636, 'portfolio_id': 21308578}, {'photo_id': 1343189534, 'portfolio_id': 21308578}, {'photo_id': 1343189479, 'portfolio_id': 21308578}, {'photo_id': 1343189394, 'portfolio_id': 21308578}, {'photo_id': 1343189354, 'portfolio_id': 21308578}, {'photo_id': 1343188982, 'portfolio_id': 21308578}, {'photo_id': 1343188931, 'portfolio_id': 21308578}, {'photo_id': 1343188884, 'portfolio_id': 21308578}, {'photo_id': 1343188831, 'portfolio_id': 21308578}, {'photo_id': 1343188767, 'portfolio_id': 21308578}, {'photo_id': 1343188106, 'portfolio_id': 21308578}, {'photo_id': 1343188067, 'portfolio_id': 21308578}, {'photo_id': 1343188033, 'portfolio_id': 21308578}, {'photo_id': 1343187981, 'portfolio_id': 21308578}] map_portfolio_id_photo_id: {21308578: [1343192095, 1343192007, 1343191930, 1343191899, 1343191894, 1343191890, 1343191264, 1343191187, 1343191098, 1343191000, 1343190726, 1343190690, 1343190660, 1343190623, 1343190558, 1343190503, 1343190202, 1343190156, 1343190085, 1343190020, 1343189663, 1343189636, 1343189534, 1343189479, 1343189394, 1343189354, 1343188982, 1343188931, 1343188884, 1343188831, 1343188767, 1343188106, 1343188067, 1343188033, 1343187981]} ##### 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.0167696475982666 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Mar 11 20:38:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21308578) 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 : 21308578 get user id for portfolio 21308578 get sub ptf for main ptf 21308578, type 3726 and hashtags ['papier', 'Teint_Dans_La_Masse', 'mal_croppe', 'metal', 'cartonnette', 'Carton_gris', 'environnement', 'autre_refus', 'kraft', 'flou', 'plastique', 'Carton_brun'] 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`=21308578 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Teint_Dans_La_Masse','mal_croppe','metal','cartonnette','Carton_gris','environnement','autre_refus','kraft','flou','plastique','Carton_brun')) 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`=21308578 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Teint_Dans_La_Masse','mal_croppe','metal','cartonnette','Carton_gris','environnement','autre_refus','kraft','flou','plastique','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 21308578, 'sub_port_id': 21308651, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13892391, 'last_updated_at': datetime.datetime(2025, 3, 11, 20, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 20, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 20, 34, 57)}, 'Carton_brun': {'main_port_id': 21308578, 'sub_port_id': 21308652, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13892392, 'last_updated_at': datetime.datetime(2025, 3, 11, 20, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 20, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 20, 34, 57)}, 'cartonnette': {'main_port_id': 21308578, 'sub_port_id': 21308653, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13892393, 'last_updated_at': datetime.datetime(2025, 3, 11, 20, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 20, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 20, 34, 57)}, 'papier': {'main_port_id': 21308578, 'sub_port_id': 21308654, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13892394, 'last_updated_at': datetime.datetime(2025, 3, 11, 20, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 20, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 20, 34, 57)}, 'autre_refus': {'main_port_id': 21308578, 'sub_port_id': 21308655, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13892395, 'last_updated_at': datetime.datetime(2025, 3, 11, 20, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 20, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 20, 34, 57)}, 'environnement': {'main_port_id': 21308578, 'sub_port_id': 21308656, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13892396, 'last_updated_at': datetime.datetime(2025, 3, 11, 20, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 20, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 20, 34, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 21308578, 'sub_port_id': 21308657, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13892397, 'last_updated_at': datetime.datetime(2025, 3, 11, 20, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 20, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 20, 34, 57)}, 'flou': {'main_port_id': 21308578, 'sub_port_id': 21308658, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13892398, 'last_updated_at': datetime.datetime(2025, 3, 11, 20, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 20, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 20, 34, 57)}, 'Carton_gris': {'main_port_id': 21308578, 'sub_port_id': 21308659, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13892399, 'last_updated_at': datetime.datetime(2025, 3, 11, 20, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 20, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 20, 34, 57)}, 'kraft': {'main_port_id': 21308578, 'sub_port_id': 21308660, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13892400, 'last_updated_at': datetime.datetime(2025, 3, 11, 20, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 20, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 20, 34, 57)}, 'plastique': {'main_port_id': 21308578, 'sub_port_id': 21308661, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13892401, 'last_updated_at': datetime.datetime(2025, 3, 11, 20, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 20, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 20, 34, 57)}, 'metal': {'main_port_id': 21308578, 'sub_port_id': 21308662, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13892402, 'last_updated_at': datetime.datetime(2025, 3, 11, 20, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 20, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 20, 34, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21308651 , 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=21308578 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 (21308651) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21308578) result : ((1343187981,), (1343188033,), (1343188067,), (1343188106,), (1343188767,), (1343188831,), (1343188884,), (1343188931,), (1343188982,), (1343189354,), (1343189394,), (1343189479,), (1343189534,), (1343189636,), (1343189663,), (1343190020,), (1343190085,), (1343190156,), (1343190202,), (1343190503,), (1343190558,), (1343190623,), (1343190660,), (1343190690,), (1343190726,), (1343191000,), (1343191098,), (1343191187,), (1343191264,), (1343191890,), (1343191894,), (1343191899,), (1343191930,), (1343192007,), (1343192095,)) 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 (1343191000) 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 21308652 , 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=21308578 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 (21308652) result : ((1343192542,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21308578) result : ((1343187981,), (1343188033,), (1343188067,), (1343188106,), (1343188767,), (1343188831,), (1343188884,), (1343188931,), (1343188982,), (1343189354,), (1343189394,), (1343189479,), (1343189534,), (1343189636,), (1343189663,), (1343190020,), (1343190085,), (1343190156,), (1343190202,), (1343190503,), (1343190558,), (1343190623,), (1343190660,), (1343190690,), (1343190726,), (1343191000,), (1343191098,), (1343191187,), (1343191264,), (1343191890,), (1343191894,), (1343191899,), (1343191930,), (1343192007,), (1343192095,)) 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 (1343191000) 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 21308653 , 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=21308578 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 (21308653) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21308578) result : ((1343187981,), (1343188033,), (1343188067,), (1343188106,), (1343188767,), (1343188831,), (1343188884,), (1343188931,), (1343188982,), (1343189354,), (1343189394,), (1343189479,), (1343189534,), (1343189636,), (1343189663,), (1343190020,), (1343190085,), (1343190156,), (1343190202,), (1343190503,), (1343190558,), (1343190623,), (1343190660,), (1343190690,), (1343190726,), (1343191000,), (1343191098,), (1343191187,), (1343191264,), (1343191890,), (1343191894,), (1343191899,), (1343191930,), (1343192007,), (1343192095,)) 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 (1343191000) 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 21308654 , 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=21308578 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 (21308654) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21308578) result : ((1343187981,), (1343188033,), (1343188067,), (1343188106,), (1343188767,), (1343188831,), (1343188884,), (1343188931,), (1343188982,), (1343189354,), (1343189394,), (1343189479,), (1343189534,), (1343189636,), (1343189663,), (1343190020,), (1343190085,), (1343190156,), (1343190202,), (1343190503,), (1343190558,), (1343190623,), (1343190660,), (1343190690,), (1343190726,), (1343191000,), (1343191098,), (1343191187,), (1343191264,), (1343191890,), (1343191894,), (1343191899,), (1343191930,), (1343192007,), (1343192095,)) 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 (1343191000) 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 21308655 , 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=21308578 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 (21308655) result : ((1343192514,), (1343192517,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21308578) result : ((1343187981,), (1343188033,), (1343188067,), (1343188106,), (1343188767,), (1343188831,), (1343188884,), (1343188931,), (1343188982,), (1343189354,), (1343189394,), (1343189479,), (1343189534,), (1343189636,), (1343189663,), (1343190020,), (1343190085,), (1343190156,), (1343190202,), (1343190503,), (1343190558,), (1343190623,), (1343190660,), (1343190690,), (1343190726,), (1343191000,), (1343191098,), (1343191187,), (1343191264,), (1343191890,), (1343191894,), (1343191899,), (1343191930,), (1343192007,), (1343192095,)) 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 (1343191000) 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 21308656 , 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=21308578 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 (21308656) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21308578) result : ((1343187981,), (1343188033,), (1343188067,), (1343188106,), (1343188767,), (1343188831,), (1343188884,), (1343188931,), (1343188982,), (1343189354,), (1343189394,), (1343189479,), (1343189534,), (1343189636,), (1343189663,), (1343190020,), (1343190085,), (1343190156,), (1343190202,), (1343190503,), (1343190558,), (1343190623,), (1343190660,), (1343190690,), (1343190726,), (1343191000,), (1343191098,), (1343191187,), (1343191264,), (1343191890,), (1343191894,), (1343191899,), (1343191930,), (1343192007,), (1343192095,)) 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 (1343191000) 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 21308657 , 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=21308578 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 (21308657) result : ((1343192489,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21308578) result : ((1343187981,), (1343188033,), (1343188067,), (1343188106,), (1343188767,), (1343188831,), (1343188884,), (1343188931,), (1343188982,), (1343189354,), (1343189394,), (1343189479,), (1343189534,), (1343189636,), (1343189663,), (1343190020,), (1343190085,), (1343190156,), (1343190202,), (1343190503,), (1343190558,), (1343190623,), (1343190660,), (1343190690,), (1343190726,), (1343191000,), (1343191098,), (1343191187,), (1343191264,), (1343191890,), (1343191894,), (1343191899,), (1343191930,), (1343192007,), (1343192095,)) 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 (1343191000) 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 21308658 , 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=21308578 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 (21308658) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21308578) result : ((1343187981,), (1343188033,), (1343188067,), (1343188106,), (1343188767,), (1343188831,), (1343188884,), (1343188931,), (1343188982,), (1343189354,), (1343189394,), (1343189479,), (1343189534,), (1343189636,), (1343189663,), (1343190020,), (1343190085,), (1343190156,), (1343190202,), (1343190503,), (1343190558,), (1343190623,), (1343190660,), (1343190690,), (1343190726,), (1343191000,), (1343191098,), (1343191187,), (1343191264,), (1343191890,), (1343191894,), (1343191899,), (1343191930,), (1343192007,), (1343192095,)) 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 (1343191000) 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 21308659 , 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=21308578 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 (21308659) result : ((1343192535,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21308578) result : ((1343187981,), (1343188033,), (1343188067,), (1343188106,), (1343188767,), (1343188831,), (1343188884,), (1343188931,), (1343188982,), (1343189354,), (1343189394,), (1343189479,), (1343189534,), (1343189636,), (1343189663,), (1343190020,), (1343190085,), (1343190156,), (1343190202,), (1343190503,), (1343190558,), (1343190623,), (1343190660,), (1343190690,), (1343190726,), (1343191000,), (1343191098,), (1343191187,), (1343191264,), (1343191890,), (1343191894,), (1343191899,), (1343191930,), (1343192007,), (1343192095,)) 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 (1343191000) 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 21308660 , 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=21308578 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 (21308660) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21308578) result : ((1343187981,), (1343188033,), (1343188067,), (1343188106,), (1343188767,), (1343188831,), (1343188884,), (1343188931,), (1343188982,), (1343189354,), (1343189394,), (1343189479,), (1343189534,), (1343189636,), (1343189663,), (1343190020,), (1343190085,), (1343190156,), (1343190202,), (1343190503,), (1343190558,), (1343190623,), (1343190660,), (1343190690,), (1343190726,), (1343191000,), (1343191098,), (1343191187,), (1343191264,), (1343191890,), (1343191894,), (1343191899,), (1343191930,), (1343192007,), (1343192095,)) 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 (1343191000) 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 21308661 , 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=21308578 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 (21308661) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21308578) result : ((1343187981,), (1343188033,), (1343188067,), (1343188106,), (1343188767,), (1343188831,), (1343188884,), (1343188931,), (1343188982,), (1343189354,), (1343189394,), (1343189479,), (1343189534,), (1343189636,), (1343189663,), (1343190020,), (1343190085,), (1343190156,), (1343190202,), (1343190503,), (1343190558,), (1343190623,), (1343190660,), (1343190690,), (1343190726,), (1343191000,), (1343191098,), (1343191187,), (1343191264,), (1343191890,), (1343191894,), (1343191899,), (1343191930,), (1343192007,), (1343192095,)) 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 (1343191000) 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 21308662 , 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=21308578 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 (21308662) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21308578) result : ((1343187981,), (1343188033,), (1343188067,), (1343188106,), (1343188767,), (1343188831,), (1343188884,), (1343188931,), (1343188982,), (1343189354,), (1343189394,), (1343189479,), (1343189534,), (1343189636,), (1343189663,), (1343190020,), (1343190085,), (1343190156,), (1343190202,), (1343190503,), (1343190558,), (1343190623,), (1343190660,), (1343190690,), (1343190726,), (1343191000,), (1343191098,), (1343191187,), (1343191264,), (1343191890,), (1343191894,), (1343191899,), (1343191930,), (1343192007,), (1343192095,)) 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 (1343191000) 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`=21308578 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Teint_Dans_La_Masse','mal_croppe','metal','cartonnette','Carton_gris','environnement','autre_refus','kraft','flou','plastique','Carton_brun')) 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`=21308578 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Teint_Dans_La_Masse','mal_croppe','metal','cartonnette','Carton_gris','environnement','autre_refus','kraft','flou','plastique','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 21308578, 'sub_port_id': 21308663, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13892403, 'last_updated_at': datetime.datetime(2025, 3, 11, 20, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 20, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 20, 34, 59)}, 'Carton_brun': {'main_port_id': 21308578, 'sub_port_id': 21308664, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13892404, 'last_updated_at': datetime.datetime(2025, 3, 11, 20, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 20, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 20, 34, 59)}, 'cartonnette': {'main_port_id': 21308578, 'sub_port_id': 21308665, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13892405, 'last_updated_at': datetime.datetime(2025, 3, 11, 20, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 20, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 20, 34, 59)}, 'papier': {'main_port_id': 21308578, 'sub_port_id': 21308666, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13892406, 'last_updated_at': datetime.datetime(2025, 3, 11, 20, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 20, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 20, 34, 59)}, 'autre_refus': {'main_port_id': 21308578, 'sub_port_id': 21308667, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13892407, 'last_updated_at': datetime.datetime(2025, 3, 11, 20, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 20, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 20, 34, 59)}, 'environnement': {'main_port_id': 21308578, 'sub_port_id': 21308668, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13892408, 'last_updated_at': datetime.datetime(2025, 3, 11, 20, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 20, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 20, 34, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 21308578, 'sub_port_id': 21308669, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13892409, 'last_updated_at': datetime.datetime(2025, 3, 11, 20, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 20, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 20, 34, 59)}, 'flou': {'main_port_id': 21308578, 'sub_port_id': 21308670, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13892410, 'last_updated_at': datetime.datetime(2025, 3, 11, 20, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 20, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 20, 34, 59)}, 'Carton_gris': {'main_port_id': 21308578, 'sub_port_id': 21308671, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13892411, 'last_updated_at': datetime.datetime(2025, 3, 11, 20, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 20, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 20, 34, 59)}, 'kraft': {'main_port_id': 21308578, 'sub_port_id': 21308672, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13892412, 'last_updated_at': datetime.datetime(2025, 3, 11, 20, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 20, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 20, 34, 59)}, 'plastique': {'main_port_id': 21308578, 'sub_port_id': 21308673, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13892413, 'last_updated_at': datetime.datetime(2025, 3, 11, 20, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 20, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 20, 34, 59)}, 'metal': {'main_port_id': 21308578, 'sub_port_id': 21308674, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13892414, 'last_updated_at': datetime.datetime(2025, 3, 11, 20, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 20, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 20, 34, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21308663,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21308651 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21308664,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21308652 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21308665,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21308653 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21308666,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21308654 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21308667,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21308655 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21308668,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21308656 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21308669,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21308657 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21308670,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21308658 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21308671,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21308659 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21308672,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21308660 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21308673,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21308661 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21308674,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21308662 lien utilise dans velours : https://www.fotonower.com/velours/21308663,21308664,21308665,21308666,21308667,21308668,21308669,21308670,21308671,21308672,21308673,21308674?tags=mal_croppe,Carton_brun,cartonnette,papier,autre_refus,environnement,Teint_Dans_La_Masse,flou,Carton_gris,kraft,plastique,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21308578]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1343192095, 1343192007, 1343191930, 1343191899, 1343191894, 1343191890, 1343191264, 1343191187, 1343191098, 1343191000, 1343190726, 1343190690, 1343190660, 1343190623, 1343190558, 1343190503, 1343190202, 1343190156, 1343190085, 1343190020] map_info['map_portfolio_photo'] : {21308578: [1343192095, 1343192007, 1343191930, 1343191899, 1343191894, 1343191890, 1343191264, 1343191187, 1343191098, 1343191000, 1343190726, 1343190690, 1343190660, 1343190623, 1343190558, 1343190503, 1343190202, 1343190156, 1343190085, 1343190020, 1343189663, 1343189636, 1343189534, 1343189479, 1343189394, 1343189354, 1343188982, 1343188931, 1343188884, 1343188831, 1343188767, 1343188106, 1343188067, 1343188033, 1343187981]} final : False mtd_id 4302 list_pids : [1343192095, 1343192007, 1343191930, 1343191899, 1343191894, 1343191890, 1343191264, 1343191187, 1343191098, 1343191000, 1343190726, 1343190690, 1343190660, 1343190623, 1343190558, 1343190503, 1343190202, 1343190156, 1343190085, 1343190020] Looping around the photos to save general results len do output : 1 /21308578. 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, '2659563') ('4302', '21308578', '1343192095', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343192007', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343191930', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343191899', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343191894', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343191890', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343191264', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343191187', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343191098', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343191000', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343190726', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343190690', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343190660', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343190623', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343190558', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343190503', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343190202', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343190156', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343190085', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343190020', None, None, None, None, None, '2659563') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 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, '21308578', "{'mal_croppe': 21308651, 'Carton_brun': 21308652, 'cartonnette': 21308653, 'papier': 21308654, 'autre_refus': 21308655, 'environnement': 21308656, 'Teint_Dans_La_Masse': 21308657, 'flou': 21308658, 'Carton_gris': 21308659, 'kraft': 21308660, 'plastique': 21308661, 'metal': 21308662}", None, None, None, None, '2659563'), ('4302', '21308578', '1343192095', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343192007', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343191930', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343191899', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343191894', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343191890', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343191264', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343191187', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343191098', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343191000', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343190726', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343190690', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343190660', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343190623', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343190558', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343190503', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343190202', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343190156', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343190085', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343190020', None, None, None, None, None, '2659563')] time used for this insertion : 0.020587682723999023 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.7624826431274414 time spend to save output : 0.021116018295288086 total time spend for step 1 : 0.7835986614227295 step2:final Tue Mar 11 20:38:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (21308578) 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 21308578 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1343188106,1343188067,1343188033,1343187981,1343188982,1343188931,1343188884,1343188831,1343188767,1343189663,1343189636,1343189534,1343189479,1343189394,1343189354,1343190202,1343190156,1343190085,1343190020,1343190726,1343190690,1343190660,1343190623,1343190558,1343190503,1343191264,1343191187,1343191098,1343191000,1343192095,1343192007,1343191930,1343191899,1343191894,1343191890); 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([21308578]) Inside saveOutput : final : False verbose : True original output for save of step final : {1343192095: ('0.18335263636671284',), 1343192007: ('0.18335263636671284',), 1343191930: ('0.18335263636671284',), 1343191899: ('0.18335263636671284',), 1343191894: ('0.18335263636671284',), 1343191890: ('0.18335263636671284',), 1343191264: ('0.18335263636671284',), 1343191187: ('0.18335263636671284',), 1343191098: ('0.18335263636671284',), 1343191000: ('0.18335263636671284',), 1343190726: ('0.18335263636671284',), 1343190690: ('0.18335263636671284',), 1343190660: ('0.18335263636671284',), 1343190623: ('0.18335263636671284',), 1343190558: ('0.18335263636671284',), 1343190503: ('0.18335263636671284',), 1343190202: ('0.18335263636671284',), 1343190156: ('0.18335263636671284',), 1343190085: ('0.18335263636671284',), 1343190020: ('0.18335263636671284',)} new output for save of step final : {1343192095: ('0.18335263636671284',), 1343192007: ('0.18335263636671284',), 1343191930: ('0.18335263636671284',), 1343191899: ('0.18335263636671284',), 1343191894: ('0.18335263636671284',), 1343191890: ('0.18335263636671284',), 1343191264: ('0.18335263636671284',), 1343191187: ('0.18335263636671284',), 1343191098: ('0.18335263636671284',), 1343191000: ('0.18335263636671284',), 1343190726: ('0.18335263636671284',), 1343190690: ('0.18335263636671284',), 1343190660: ('0.18335263636671284',), 1343190623: ('0.18335263636671284',), 1343190558: ('0.18335263636671284',), 1343190503: ('0.18335263636671284',), 1343190202: ('0.18335263636671284',), 1343190156: ('0.18335263636671284',), 1343190085: ('0.18335263636671284',), 1343190020: ('0.18335263636671284',)} [1343192095, 1343192007, 1343191930, 1343191899, 1343191894, 1343191890, 1343191264, 1343191187, 1343191098, 1343191000, 1343190726, 1343190690, 1343190660, 1343190623, 1343190558, 1343190503, 1343190202, 1343190156, 1343190085, 1343190020] map_info['map_portfolio_photo'] : {21308578: [1343192095, 1343192007, 1343191930, 1343191899, 1343191894, 1343191890, 1343191264, 1343191187, 1343191098, 1343191000, 1343190726, 1343190690, 1343190660, 1343190623, 1343190558, 1343190503, 1343190202, 1343190156, 1343190085, 1343190020, 1343189663, 1343189636, 1343189534, 1343189479, 1343189394, 1343189354, 1343188982, 1343188931, 1343188884, 1343188831, 1343188767, 1343188106, 1343188067, 1343188033, 1343187981]} final : False mtd_id 4302 list_pids : [1343192095, 1343192007, 1343191930, 1343191899, 1343191894, 1343191890, 1343191264, 1343191187, 1343191098, 1343191000, 1343190726, 1343190690, 1343190660, 1343190623, 1343190558, 1343190503, 1343190202, 1343190156, 1343190085, 1343190020] Looping around the photos to save general results len do output : 20 /1343192095.Didn't retrieve data . /1343192007.Didn't retrieve data . /1343191930.Didn't retrieve data . /1343191899.Didn't retrieve data . /1343191894.Didn't retrieve data . /1343191890.Didn't retrieve data . /1343191264.Didn't retrieve data . /1343191187.Didn't retrieve data . /1343191098.Didn't retrieve data . /1343191000.Didn't retrieve data . /1343190726.Didn't retrieve data . /1343190690.Didn't retrieve data . /1343190660.Didn't retrieve data . /1343190623.Didn't retrieve data . /1343190558.Didn't retrieve data . /1343190503.Didn't retrieve data . /1343190202.Didn't retrieve data . /1343190156.Didn't retrieve data . /1343190085.Didn't retrieve data . /1343190020.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, '2659563') ('4302', '21308578', '1343192095', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343192007', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343191930', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343191899', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343191894', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343191890', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343191264', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343191187', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343191098', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343191000', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343190726', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343190690', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343190660', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343190623', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343190558', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343190503', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343190202', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343190156', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343190085', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343190020', None, None, None, None, None, '2659563') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 60 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', '21308578', '1343192095', '0.18335263636671284', None, None, None, None, '2659563'), ('4302', '21308578', '1343192007', '0.18335263636671284', None, None, None, None, '2659563'), ('4302', '21308578', '1343191930', '0.18335263636671284', None, None, None, None, '2659563'), ('4302', '21308578', '1343191899', '0.18335263636671284', None, None, None, None, '2659563'), ('4302', '21308578', '1343191894', '0.18335263636671284', None, None, None, None, '2659563'), ('4302', '21308578', '1343191890', '0.18335263636671284', None, None, None, None, '2659563'), ('4302', '21308578', '1343191264', '0.18335263636671284', None, None, None, None, '2659563'), ('4302', '21308578', '1343191187', '0.18335263636671284', None, None, None, None, '2659563'), ('4302', '21308578', '1343191098', '0.18335263636671284', None, None, None, None, '2659563'), ('4302', '21308578', '1343191000', '0.18335263636671284', None, None, None, None, '2659563'), ('4302', '21308578', '1343190726', '0.18335263636671284', None, None, None, None, '2659563'), ('4302', '21308578', '1343190690', '0.18335263636671284', None, None, None, None, '2659563'), ('4302', '21308578', '1343190660', '0.18335263636671284', None, None, None, None, '2659563'), ('4302', '21308578', '1343190623', '0.18335263636671284', None, None, None, None, '2659563'), ('4302', '21308578', '1343190558', '0.18335263636671284', None, None, None, None, '2659563'), ('4302', '21308578', '1343190503', '0.18335263636671284', None, None, None, None, '2659563'), ('4302', '21308578', '1343190202', '0.18335263636671284', None, None, None, None, '2659563'), ('4302', '21308578', '1343190156', '0.18335263636671284', None, None, None, None, '2659563'), ('4302', '21308578', '1343190085', '0.18335263636671284', None, None, None, None, '2659563'), ('4302', '21308578', '1343190020', '0.18335263636671284', None, None, None, None, '2659563')] time used for this insertion : 2.4556829929351807 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06807875633239746 time spend to save output : 2.456465244293213 total time spend for step 2 : 2.5245440006256104 step3:velours_tree Tue Mar 11 20:39:02 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21308578: [{'mal_croppe': 21308651, 'Carton_brun': 21308652, 'cartonnette': 21308653, 'papier': 21308654, 'autre_refus': 21308655, 'environnement': 21308656, 'Teint_Dans_La_Masse': 21308657, 'flou': 21308658, 'Carton_gris': 21308659, 'kraft': 21308660, 'plastique': 21308661, 'metal': 21308662}]} input_args_next_step : {21308578: ()} output_args : {21308578: [{'mal_croppe': 21308651, 'Carton_brun': 21308652, 'cartonnette': 21308653, 'papier': 21308654, 'autre_refus': 21308655, 'environnement': 21308656, 'Teint_Dans_La_Masse': 21308657, 'flou': 21308658, 'Carton_gris': 21308659, 'kraft': 21308660, 'plastique': 21308661, 'metal': 21308662}]} args : 21308578 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 : ({'mal_croppe': 21308651, 'Carton_brun': 21308652, 'cartonnette': 21308653, 'papier': 21308654, 'autre_refus': 21308655, 'environnement': 21308656, 'Teint_Dans_La_Masse': 21308657, 'flou': 21308658, 'Carton_gris': 21308659, 'kraft': 21308660, 'plastique': 21308661, 'metal': 21308662},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21308578) 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([21308578]) 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.5260024070739746 time spend to save output : 7.557868957519531e-05 total time spend for step 3 : 0.5260779857635498 step4:send_mail_cod Tue Mar 11 20:39:02 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed 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 : {1343192095: ('0.18335263636671284',), 1343192007: ('0.18335263636671284',), 1343191930: ('0.18335263636671284',), 1343191899: ('0.18335263636671284',), 1343191894: ('0.18335263636671284',), 1343191890: ('0.18335263636671284',), 1343191264: ('0.18335263636671284',), 1343191187: ('0.18335263636671284',), 1343191098: ('0.18335263636671284',), 1343191000: ('0.18335263636671284',), 1343190726: ('0.18335263636671284',), 1343190690: ('0.18335263636671284',), 1343190660: ('0.18335263636671284',), 1343190623: ('0.18335263636671284',), 1343190558: ('0.18335263636671284',), 1343190503: ('0.18335263636671284',), 1343190202: ('0.18335263636671284',), 1343190156: ('0.18335263636671284',), 1343190085: ('0.18335263636671284',), 1343190020: ('0.18335263636671284',)} input_args_next_step : {1343192095: ()} output_args : {1343192095: ('0.18335263636671284',), 1343192007: ('0.18335263636671284',), 1343191930: ('0.18335263636671284',), 1343191899: ('0.18335263636671284',), 1343191894: ('0.18335263636671284',), 1343191890: ('0.18335263636671284',), 1343191264: ('0.18335263636671284',), 1343191187: ('0.18335263636671284',), 1343191098: ('0.18335263636671284',), 1343191000: ('0.18335263636671284',), 1343190726: ('0.18335263636671284',), 1343190690: ('0.18335263636671284',), 1343190660: ('0.18335263636671284',), 1343190623: ('0.18335263636671284',), 1343190558: ('0.18335263636671284',), 1343190503: ('0.18335263636671284',), 1343190202: ('0.18335263636671284',), 1343190156: ('0.18335263636671284',), 1343190085: ('0.18335263636671284',), 1343190020: ('0.18335263636671284',)} args : 1343192095 depend.output_id : 0 input_args_next_step : {1343192095: ('0.18335263636671284',), 1343192007: ()} output_args : {1343192095: ('0.18335263636671284',), 1343192007: ('0.18335263636671284',), 1343191930: ('0.18335263636671284',), 1343191899: ('0.18335263636671284',), 1343191894: ('0.18335263636671284',), 1343191890: ('0.18335263636671284',), 1343191264: ('0.18335263636671284',), 1343191187: ('0.18335263636671284',), 1343191098: ('0.18335263636671284',), 1343191000: ('0.18335263636671284',), 1343190726: ('0.18335263636671284',), 1343190690: ('0.18335263636671284',), 1343190660: ('0.18335263636671284',), 1343190623: ('0.18335263636671284',), 1343190558: ('0.18335263636671284',), 1343190503: ('0.18335263636671284',), 1343190202: ('0.18335263636671284',), 1343190156: ('0.18335263636671284',), 1343190085: ('0.18335263636671284',), 1343190020: ('0.18335263636671284',)} args : 1343192007 depend.output_id : 0 input_args_next_step : {1343192095: ('0.18335263636671284',), 1343192007: ('0.18335263636671284',), 1343191930: ()} output_args : {1343192095: ('0.18335263636671284',), 1343192007: ('0.18335263636671284',), 1343191930: ('0.18335263636671284',), 1343191899: ('0.18335263636671284',), 1343191894: ('0.18335263636671284',), 1343191890: ('0.18335263636671284',), 1343191264: ('0.18335263636671284',), 1343191187: ('0.18335263636671284',), 1343191098: ('0.18335263636671284',), 1343191000: ('0.18335263636671284',), 1343190726: ('0.18335263636671284',), 1343190690: ('0.18335263636671284',), 1343190660: ('0.18335263636671284',), 1343190623: ('0.18335263636671284',), 1343190558: ('0.18335263636671284',), 1343190503: ('0.18335263636671284',), 1343190202: ('0.18335263636671284',), 1343190156: ('0.18335263636671284',), 1343190085: ('0.18335263636671284',), 1343190020: ('0.18335263636671284',)} args : 1343191930 depend.output_id : 0 input_args_next_step : {1343192095: ('0.18335263636671284',), 1343192007: ('0.18335263636671284',), 1343191930: ('0.18335263636671284',), 1343191899: ()} output_args : {1343192095: ('0.18335263636671284',), 1343192007: ('0.18335263636671284',), 1343191930: ('0.18335263636671284',), 1343191899: ('0.18335263636671284',), 1343191894: ('0.18335263636671284',), 1343191890: ('0.18335263636671284',), 1343191264: ('0.18335263636671284',), 1343191187: ('0.18335263636671284',), 1343191098: ('0.18335263636671284',), 1343191000: ('0.18335263636671284',), 1343190726: ('0.18335263636671284',), 1343190690: ('0.18335263636671284',), 1343190660: ('0.18335263636671284',), 1343190623: ('0.18335263636671284',), 1343190558: ('0.18335263636671284',), 1343190503: ('0.18335263636671284',), 1343190202: ('0.18335263636671284',), 1343190156: ('0.18335263636671284',), 1343190085: ('0.18335263636671284',), 1343190020: ('0.18335263636671284',)} args : 1343191899 depend.output_id : 0 input_args_next_step : {1343192095: ('0.18335263636671284',), 1343192007: ('0.18335263636671284',), 1343191930: ('0.18335263636671284',), 1343191899: ('0.18335263636671284',), 1343191894: ()} output_args : {1343192095: ('0.18335263636671284',), 1343192007: ('0.18335263636671284',), 1343191930: ('0.18335263636671284',), 1343191899: ('0.18335263636671284',), 1343191894: ('0.18335263636671284',), 1343191890: ('0.18335263636671284',), 1343191264: ('0.18335263636671284',), 1343191187: ('0.18335263636671284',), 1343191098: ('0.18335263636671284',), 1343191000: ('0.18335263636671284',), 1343190726: ('0.18335263636671284',), 1343190690: ('0.18335263636671284',), 1343190660: ('0.18335263636671284',), 1343190623: ('0.18335263636671284',), 1343190558: ('0.18335263636671284',), 1343190503: ('0.18335263636671284',), 1343190202: ('0.18335263636671284',), 1343190156: ('0.18335263636671284',), 1343190085: ('0.18335263636671284',), 1343190020: ('0.18335263636671284',)} args : 1343191894 depend.output_id : 0 input_args_next_step : {1343192095: ('0.18335263636671284',), 1343192007: ('0.18335263636671284',), 1343191930: ('0.18335263636671284',), 1343191899: ('0.18335263636671284',), 1343191894: ('0.18335263636671284',), 1343191890: ()} output_args : {1343192095: ('0.18335263636671284',), 1343192007: ('0.18335263636671284',), 1343191930: ('0.18335263636671284',), 1343191899: ('0.18335263636671284',), 1343191894: ('0.18335263636671284',), 1343191890: ('0.18335263636671284',), 1343191264: ('0.18335263636671284',), 1343191187: ('0.18335263636671284',), 1343191098: ('0.18335263636671284',), 1343191000: ('0.18335263636671284',), 1343190726: ('0.18335263636671284',), 1343190690: ('0.18335263636671284',), 1343190660: ('0.18335263636671284',), 1343190623: ('0.18335263636671284',), 1343190558: ('0.18335263636671284',), 1343190503: ('0.18335263636671284',), 1343190202: ('0.18335263636671284',), 1343190156: ('0.18335263636671284',), 1343190085: ('0.18335263636671284',), 1343190020: ('0.18335263636671284',)} args : 1343191890 depend.output_id : 0 input_args_next_step : {1343192095: ('0.18335263636671284',), 1343192007: ('0.18335263636671284',), 1343191930: ('0.18335263636671284',), 1343191899: ('0.18335263636671284',), 1343191894: ('0.18335263636671284',), 1343191890: ('0.18335263636671284',), 1343191264: ()} output_args : {1343192095: ('0.18335263636671284',), 1343192007: ('0.18335263636671284',), 1343191930: ('0.18335263636671284',), 1343191899: ('0.18335263636671284',), 1343191894: ('0.18335263636671284',), 1343191890: ('0.18335263636671284',), 1343191264: ('0.18335263636671284',), 1343191187: ('0.18335263636671284',), 1343191098: ('0.18335263636671284',), 1343191000: ('0.18335263636671284',), 1343190726: ('0.18335263636671284',), 1343190690: ('0.18335263636671284',), 1343190660: ('0.18335263636671284',), 1343190623: ('0.18335263636671284',), 1343190558: ('0.18335263636671284',), 1343190503: ('0.18335263636671284',), 1343190202: ('0.18335263636671284',), 1343190156: ('0.18335263636671284',), 1343190085: ('0.18335263636671284',), 1343190020: ('0.18335263636671284',)} args : 1343191264 depend.output_id : 0 input_args_next_step : {1343192095: ('0.18335263636671284',), 1343192007: ('0.18335263636671284',), 1343191930: ('0.18335263636671284',), 1343191899: ('0.18335263636671284',), 1343191894: ('0.18335263636671284',), 1343191890: ('0.18335263636671284',), 1343191264: ('0.18335263636671284',), 1343191187: ()} output_args : {1343192095: ('0.18335263636671284',), 1343192007: ('0.18335263636671284',), 1343191930: ('0.18335263636671284',), 1343191899: ('0.18335263636671284',), 1343191894: ('0.18335263636671284',), 1343191890: ('0.18335263636671284',), 1343191264: ('0.18335263636671284',), 1343191187: ('0.18335263636671284',), 1343191098: ('0.18335263636671284',), 1343191000: ('0.18335263636671284',), 1343190726: ('0.18335263636671284',), 1343190690: ('0.18335263636671284',), 1343190660: ('0.18335263636671284',), 1343190623: ('0.18335263636671284',), 1343190558: ('0.18335263636671284',), 1343190503: ('0.18335263636671284',), 1343190202: ('0.18335263636671284',), 1343190156: ('0.18335263636671284',), 1343190085: ('0.18335263636671284',), 1343190020: ('0.18335263636671284',)} args : 1343191187 depend.output_id : 0 input_args_next_step : {1343192095: ('0.18335263636671284',), 1343192007: ('0.18335263636671284',), 1343191930: ('0.18335263636671284',), 1343191899: ('0.18335263636671284',), 1343191894: ('0.18335263636671284',), 1343191890: ('0.18335263636671284',), 1343191264: ('0.18335263636671284',), 1343191187: ('0.18335263636671284',), 1343191098: ()} output_args : {1343192095: ('0.18335263636671284',), 1343192007: ('0.18335263636671284',), 1343191930: ('0.18335263636671284',), 1343191899: ('0.18335263636671284',), 1343191894: ('0.18335263636671284',), 1343191890: ('0.18335263636671284',), 1343191264: ('0.18335263636671284',), 1343191187: ('0.18335263636671284',), 1343191098: ('0.18335263636671284',), 1343191000: ('0.18335263636671284',), 1343190726: ('0.18335263636671284',), 1343190690: ('0.18335263636671284',), 1343190660: ('0.18335263636671284',), 1343190623: ('0.18335263636671284',), 1343190558: ('0.18335263636671284',), 1343190503: ('0.18335263636671284',), 1343190202: ('0.18335263636671284',), 1343190156: ('0.18335263636671284',), 1343190085: ('0.18335263636671284',), 1343190020: ('0.18335263636671284',)} args : 1343191098 depend.output_id : 0 input_args_next_step : {1343192095: ('0.18335263636671284',), 1343192007: ('0.18335263636671284',), 1343191930: ('0.18335263636671284',), 1343191899: ('0.18335263636671284',), 1343191894: ('0.18335263636671284',), 1343191890: ('0.18335263636671284',), 1343191264: ('0.18335263636671284',), 1343191187: ('0.18335263636671284',), 1343191098: ('0.18335263636671284',), 1343191000: ()} output_args : {1343192095: ('0.18335263636671284',), 1343192007: ('0.18335263636671284',), 1343191930: ('0.18335263636671284',), 1343191899: ('0.18335263636671284',), 1343191894: ('0.18335263636671284',), 1343191890: ('0.18335263636671284',), 1343191264: ('0.18335263636671284',), 1343191187: ('0.18335263636671284',), 1343191098: ('0.18335263636671284',), 1343191000: ('0.18335263636671284',), 1343190726: ('0.18335263636671284',), 1343190690: ('0.18335263636671284',), 1343190660: ('0.18335263636671284',), 1343190623: ('0.18335263636671284',), 1343190558: ('0.18335263636671284',), 1343190503: ('0.18335263636671284',), 1343190202: ('0.18335263636671284',), 1343190156: ('0.18335263636671284',), 1343190085: ('0.18335263636671284',), 1343190020: ('0.18335263636671284',)} args : 1343191000 depend.output_id : 0 input_args_next_step : {1343192095: ('0.18335263636671284',), 1343192007: ('0.18335263636671284',), 1343191930: ('0.18335263636671284',), 1343191899: ('0.18335263636671284',), 1343191894: ('0.18335263636671284',), 1343191890: ('0.18335263636671284',), 1343191264: ('0.18335263636671284',), 1343191187: ('0.18335263636671284',), 1343191098: ('0.18335263636671284',), 1343191000: ('0.18335263636671284',), 1343190726: ()} output_args : {1343192095: ('0.18335263636671284',), 1343192007: ('0.18335263636671284',), 1343191930: ('0.18335263636671284',), 1343191899: ('0.18335263636671284',), 1343191894: ('0.18335263636671284',), 1343191890: ('0.18335263636671284',), 1343191264: ('0.18335263636671284',), 1343191187: ('0.18335263636671284',), 1343191098: ('0.18335263636671284',), 1343191000: ('0.18335263636671284',), 1343190726: ('0.18335263636671284',), 1343190690: ('0.18335263636671284',), 1343190660: ('0.18335263636671284',), 1343190623: ('0.18335263636671284',), 1343190558: ('0.18335263636671284',), 1343190503: ('0.18335263636671284',), 1343190202: ('0.18335263636671284',), 1343190156: ('0.18335263636671284',), 1343190085: ('0.18335263636671284',), 1343190020: ('0.18335263636671284',)} args : 1343190726 depend.output_id : 0 input_args_next_step : {1343192095: ('0.18335263636671284',), 1343192007: ('0.18335263636671284',), 1343191930: ('0.18335263636671284',), 1343191899: ('0.18335263636671284',), 1343191894: ('0.18335263636671284',), 1343191890: ('0.18335263636671284',), 1343191264: ('0.18335263636671284',), 1343191187: ('0.18335263636671284',), 1343191098: ('0.18335263636671284',), 1343191000: ('0.18335263636671284',), 1343190726: ('0.18335263636671284',), 1343190690: ()} output_args : {1343192095: ('0.18335263636671284',), 1343192007: ('0.18335263636671284',), 1343191930: ('0.18335263636671284',), 1343191899: ('0.18335263636671284',), 1343191894: ('0.18335263636671284',), 1343191890: ('0.18335263636671284',), 1343191264: ('0.18335263636671284',), 1343191187: ('0.18335263636671284',), 1343191098: ('0.18335263636671284',), 1343191000: ('0.18335263636671284',), 1343190726: ('0.18335263636671284',), 1343190690: ('0.18335263636671284',), 1343190660: ('0.18335263636671284',), 1343190623: ('0.18335263636671284',), 1343190558: ('0.18335263636671284',), 1343190503: ('0.18335263636671284',), 1343190202: ('0.18335263636671284',), 1343190156: ('0.18335263636671284',), 1343190085: ('0.18335263636671284',), 1343190020: ('0.18335263636671284',)} args : 1343190690 depend.output_id : 0 input_args_next_step : {1343192095: ('0.18335263636671284',), 1343192007: ('0.18335263636671284',), 1343191930: ('0.18335263636671284',), 1343191899: ('0.18335263636671284',), 1343191894: ('0.18335263636671284',), 1343191890: ('0.18335263636671284',), 1343191264: ('0.18335263636671284',), 1343191187: ('0.18335263636671284',), 1343191098: ('0.18335263636671284',), 1343191000: ('0.18335263636671284',), 1343190726: ('0.18335263636671284',), 1343190690: ('0.18335263636671284',), 1343190660: ()} output_args : {1343192095: ('0.18335263636671284',), 1343192007: ('0.18335263636671284',), 1343191930: ('0.18335263636671284',), 1343191899: ('0.18335263636671284',), 1343191894: ('0.18335263636671284',), 1343191890: ('0.18335263636671284',), 1343191264: ('0.18335263636671284',), 1343191187: ('0.18335263636671284',), 1343191098: ('0.18335263636671284',), 1343191000: ('0.18335263636671284',), 1343190726: ('0.18335263636671284',), 1343190690: ('0.18335263636671284',), 1343190660: ('0.18335263636671284',), 1343190623: ('0.18335263636671284',), 1343190558: ('0.18335263636671284',), 1343190503: ('0.18335263636671284',), 1343190202: ('0.18335263636671284',), 1343190156: ('0.18335263636671284',), 1343190085: ('0.18335263636671284',), 1343190020: ('0.18335263636671284',)} args : 1343190660 depend.output_id : 0 input_args_next_step : {1343192095: ('0.18335263636671284',), 1343192007: ('0.18335263636671284',), 1343191930: ('0.18335263636671284',), 1343191899: ('0.18335263636671284',), 1343191894: ('0.18335263636671284',), 1343191890: ('0.18335263636671284',), 1343191264: ('0.18335263636671284',), 1343191187: ('0.18335263636671284',), 1343191098: ('0.18335263636671284',), 1343191000: ('0.18335263636671284',), 1343190726: ('0.18335263636671284',), 1343190690: ('0.18335263636671284',), 1343190660: ('0.18335263636671284',), 1343190623: ()} output_args : {1343192095: ('0.18335263636671284',), 1343192007: ('0.18335263636671284',), 1343191930: ('0.18335263636671284',), 1343191899: ('0.18335263636671284',), 1343191894: ('0.18335263636671284',), 1343191890: ('0.18335263636671284',), 1343191264: ('0.18335263636671284',), 1343191187: ('0.18335263636671284',), 1343191098: ('0.18335263636671284',), 1343191000: ('0.18335263636671284',), 1343190726: ('0.18335263636671284',), 1343190690: ('0.18335263636671284',), 1343190660: ('0.18335263636671284',), 1343190623: ('0.18335263636671284',), 1343190558: ('0.18335263636671284',), 1343190503: ('0.18335263636671284',), 1343190202: ('0.18335263636671284',), 1343190156: ('0.18335263636671284',), 1343190085: ('0.18335263636671284',), 1343190020: ('0.18335263636671284',)} args : 1343190623 depend.output_id : 0 input_args_next_step : {1343192095: ('0.18335263636671284',), 1343192007: ('0.18335263636671284',), 1343191930: ('0.18335263636671284',), 1343191899: ('0.18335263636671284',), 1343191894: ('0.18335263636671284',), 1343191890: ('0.18335263636671284',), 1343191264: ('0.18335263636671284',), 1343191187: ('0.18335263636671284',), 1343191098: ('0.18335263636671284',), 1343191000: ('0.18335263636671284',), 1343190726: ('0.18335263636671284',), 1343190690: ('0.18335263636671284',), 1343190660: ('0.18335263636671284',), 1343190623: ('0.18335263636671284',), 1343190558: ()} output_args : {1343192095: ('0.18335263636671284',), 1343192007: ('0.18335263636671284',), 1343191930: ('0.18335263636671284',), 1343191899: ('0.18335263636671284',), 1343191894: ('0.18335263636671284',), 1343191890: ('0.18335263636671284',), 1343191264: ('0.18335263636671284',), 1343191187: ('0.18335263636671284',), 1343191098: ('0.18335263636671284',), 1343191000: ('0.18335263636671284',), 1343190726: ('0.18335263636671284',), 1343190690: ('0.18335263636671284',), 1343190660: ('0.18335263636671284',), 1343190623: ('0.18335263636671284',), 1343190558: ('0.18335263636671284',), 1343190503: ('0.18335263636671284',), 1343190202: ('0.18335263636671284',), 1343190156: ('0.18335263636671284',), 1343190085: ('0.18335263636671284',), 1343190020: ('0.18335263636671284',)} args : 1343190558 depend.output_id : 0 input_args_next_step : {1343192095: ('0.18335263636671284',), 1343192007: ('0.18335263636671284',), 1343191930: ('0.18335263636671284',), 1343191899: ('0.18335263636671284',), 1343191894: ('0.18335263636671284',), 1343191890: ('0.18335263636671284',), 1343191264: ('0.18335263636671284',), 1343191187: ('0.18335263636671284',), 1343191098: ('0.18335263636671284',), 1343191000: ('0.18335263636671284',), 1343190726: ('0.18335263636671284',), 1343190690: ('0.18335263636671284',), 1343190660: ('0.18335263636671284',), 1343190623: ('0.18335263636671284',), 1343190558: ('0.18335263636671284',), 1343190503: ()} output_args : {1343192095: ('0.18335263636671284',), 1343192007: ('0.18335263636671284',), 1343191930: ('0.18335263636671284',), 1343191899: ('0.18335263636671284',), 1343191894: ('0.18335263636671284',), 1343191890: ('0.18335263636671284',), 1343191264: ('0.18335263636671284',), 1343191187: ('0.18335263636671284',), 1343191098: ('0.18335263636671284',), 1343191000: ('0.18335263636671284',), 1343190726: ('0.18335263636671284',), 1343190690: ('0.18335263636671284',), 1343190660: ('0.18335263636671284',), 1343190623: ('0.18335263636671284',), 1343190558: ('0.18335263636671284',), 1343190503: ('0.18335263636671284',), 1343190202: ('0.18335263636671284',), 1343190156: ('0.18335263636671284',), 1343190085: ('0.18335263636671284',), 1343190020: ('0.18335263636671284',)} args : 1343190503 depend.output_id : 0 input_args_next_step : {1343192095: ('0.18335263636671284',), 1343192007: ('0.18335263636671284',), 1343191930: ('0.18335263636671284',), 1343191899: ('0.18335263636671284',), 1343191894: ('0.18335263636671284',), 1343191890: ('0.18335263636671284',), 1343191264: ('0.18335263636671284',), 1343191187: ('0.18335263636671284',), 1343191098: ('0.18335263636671284',), 1343191000: ('0.18335263636671284',), 1343190726: ('0.18335263636671284',), 1343190690: ('0.18335263636671284',), 1343190660: ('0.18335263636671284',), 1343190623: ('0.18335263636671284',), 1343190558: ('0.18335263636671284',), 1343190503: ('0.18335263636671284',), 1343190202: ()} output_args : {1343192095: ('0.18335263636671284',), 1343192007: ('0.18335263636671284',), 1343191930: ('0.18335263636671284',), 1343191899: ('0.18335263636671284',), 1343191894: ('0.18335263636671284',), 1343191890: ('0.18335263636671284',), 1343191264: ('0.18335263636671284',), 1343191187: ('0.18335263636671284',), 1343191098: ('0.18335263636671284',), 1343191000: ('0.18335263636671284',), 1343190726: ('0.18335263636671284',), 1343190690: ('0.18335263636671284',), 1343190660: ('0.18335263636671284',), 1343190623: ('0.18335263636671284',), 1343190558: ('0.18335263636671284',), 1343190503: ('0.18335263636671284',), 1343190202: ('0.18335263636671284',), 1343190156: ('0.18335263636671284',), 1343190085: ('0.18335263636671284',), 1343190020: ('0.18335263636671284',)} args : 1343190202 depend.output_id : 0 input_args_next_step : {1343192095: ('0.18335263636671284',), 1343192007: ('0.18335263636671284',), 1343191930: ('0.18335263636671284',), 1343191899: ('0.18335263636671284',), 1343191894: ('0.18335263636671284',), 1343191890: ('0.18335263636671284',), 1343191264: ('0.18335263636671284',), 1343191187: ('0.18335263636671284',), 1343191098: ('0.18335263636671284',), 1343191000: ('0.18335263636671284',), 1343190726: ('0.18335263636671284',), 1343190690: ('0.18335263636671284',), 1343190660: ('0.18335263636671284',), 1343190623: ('0.18335263636671284',), 1343190558: ('0.18335263636671284',), 1343190503: ('0.18335263636671284',), 1343190202: ('0.18335263636671284',), 1343190156: ()} output_args : {1343192095: ('0.18335263636671284',), 1343192007: ('0.18335263636671284',), 1343191930: ('0.18335263636671284',), 1343191899: ('0.18335263636671284',), 1343191894: ('0.18335263636671284',), 1343191890: ('0.18335263636671284',), 1343191264: ('0.18335263636671284',), 1343191187: ('0.18335263636671284',), 1343191098: ('0.18335263636671284',), 1343191000: ('0.18335263636671284',), 1343190726: ('0.18335263636671284',), 1343190690: ('0.18335263636671284',), 1343190660: ('0.18335263636671284',), 1343190623: ('0.18335263636671284',), 1343190558: ('0.18335263636671284',), 1343190503: ('0.18335263636671284',), 1343190202: ('0.18335263636671284',), 1343190156: ('0.18335263636671284',), 1343190085: ('0.18335263636671284',), 1343190020: ('0.18335263636671284',)} args : 1343190156 depend.output_id : 0 input_args_next_step : {1343192095: ('0.18335263636671284',), 1343192007: ('0.18335263636671284',), 1343191930: ('0.18335263636671284',), 1343191899: ('0.18335263636671284',), 1343191894: ('0.18335263636671284',), 1343191890: ('0.18335263636671284',), 1343191264: ('0.18335263636671284',), 1343191187: ('0.18335263636671284',), 1343191098: ('0.18335263636671284',), 1343191000: ('0.18335263636671284',), 1343190726: ('0.18335263636671284',), 1343190690: ('0.18335263636671284',), 1343190660: ('0.18335263636671284',), 1343190623: ('0.18335263636671284',), 1343190558: ('0.18335263636671284',), 1343190503: ('0.18335263636671284',), 1343190202: ('0.18335263636671284',), 1343190156: ('0.18335263636671284',), 1343190085: ()} output_args : {1343192095: ('0.18335263636671284',), 1343192007: ('0.18335263636671284',), 1343191930: ('0.18335263636671284',), 1343191899: ('0.18335263636671284',), 1343191894: ('0.18335263636671284',), 1343191890: ('0.18335263636671284',), 1343191264: ('0.18335263636671284',), 1343191187: ('0.18335263636671284',), 1343191098: ('0.18335263636671284',), 1343191000: ('0.18335263636671284',), 1343190726: ('0.18335263636671284',), 1343190690: ('0.18335263636671284',), 1343190660: ('0.18335263636671284',), 1343190623: ('0.18335263636671284',), 1343190558: ('0.18335263636671284',), 1343190503: ('0.18335263636671284',), 1343190202: ('0.18335263636671284',), 1343190156: ('0.18335263636671284',), 1343190085: ('0.18335263636671284',), 1343190020: ('0.18335263636671284',)} args : 1343190085 depend.output_id : 0 input_args_next_step : {1343192095: ('0.18335263636671284',), 1343192007: ('0.18335263636671284',), 1343191930: ('0.18335263636671284',), 1343191899: ('0.18335263636671284',), 1343191894: ('0.18335263636671284',), 1343191890: ('0.18335263636671284',), 1343191264: ('0.18335263636671284',), 1343191187: ('0.18335263636671284',), 1343191098: ('0.18335263636671284',), 1343191000: ('0.18335263636671284',), 1343190726: ('0.18335263636671284',), 1343190690: ('0.18335263636671284',), 1343190660: ('0.18335263636671284',), 1343190623: ('0.18335263636671284',), 1343190558: ('0.18335263636671284',), 1343190503: ('0.18335263636671284',), 1343190202: ('0.18335263636671284',), 1343190156: ('0.18335263636671284',), 1343190085: ('0.18335263636671284',), 1343190020: ()} output_args : {1343192095: ('0.18335263636671284',), 1343192007: ('0.18335263636671284',), 1343191930: ('0.18335263636671284',), 1343191899: ('0.18335263636671284',), 1343191894: ('0.18335263636671284',), 1343191890: ('0.18335263636671284',), 1343191264: ('0.18335263636671284',), 1343191187: ('0.18335263636671284',), 1343191098: ('0.18335263636671284',), 1343191000: ('0.18335263636671284',), 1343190726: ('0.18335263636671284',), 1343190690: ('0.18335263636671284',), 1343190660: ('0.18335263636671284',), 1343190623: ('0.18335263636671284',), 1343190558: ('0.18335263636671284',), 1343190503: ('0.18335263636671284',), 1343190202: ('0.18335263636671284',), 1343190156: ('0.18335263636671284',), 1343190085: ('0.18335263636671284',), 1343190020: ('0.18335263636671284',)} args : 1343190020 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 : {21308578: [{'mal_croppe': 21308651, 'Carton_brun': 21308652, 'cartonnette': 21308653, 'papier': 21308654, 'autre_refus': 21308655, 'environnement': 21308656, 'Teint_Dans_La_Masse': 21308657, 'flou': 21308658, 'Carton_gris': 21308659, 'kraft': 21308660, 'plastique': 21308661, 'metal': 21308662}]} input_args_next_step : {1343192095: ('0.18335263636671284',), 1343192007: ('0.18335263636671284',), 1343191930: ('0.18335263636671284',), 1343191899: ('0.18335263636671284',), 1343191894: ('0.18335263636671284',), 1343191890: ('0.18335263636671284',), 1343191264: ('0.18335263636671284',), 1343191187: ('0.18335263636671284',), 1343191098: ('0.18335263636671284',), 1343191000: ('0.18335263636671284',), 1343190726: ('0.18335263636671284',), 1343190690: ('0.18335263636671284',), 1343190660: ('0.18335263636671284',), 1343190623: ('0.18335263636671284',), 1343190558: ('0.18335263636671284',), 1343190503: ('0.18335263636671284',), 1343190202: ('0.18335263636671284',), 1343190156: ('0.18335263636671284',), 1343190085: ('0.18335263636671284',), 1343190020: ('0.18335263636671284',), 21308578: ()} output_args : {21308578: [{'mal_croppe': 21308651, 'Carton_brun': 21308652, 'cartonnette': 21308653, 'papier': 21308654, 'autre_refus': 21308655, 'environnement': 21308656, 'Teint_Dans_La_Masse': 21308657, 'flou': 21308658, 'Carton_gris': 21308659, 'kraft': 21308660, 'plastique': 21308661, 'metal': 21308662}]} args : 21308578 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 :21, first value : ('0.18335263636671284',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21308578) 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 (1343192095,1343192007,1343191930,1343191899,1343191894,1343191890,1343191264,1343191187,1343191098,1343191000,1343190726,1343190690,1343190660,1343190623,1343190558,1343190503,1343190202,1343190156,1343190085,1343190020) Found this number of photos: 20 ##### Call download_photos : nb_thread : 5 begin to download photo : 1343190020 begin to download photo : 1343190558 begin to download photo : 1343191000 begin to download photo : 1343191894 download finish for photo 1343190020 begin to download photo : 1343190085 download finish for photo 1343191000 begin to download photo : 1343191098 download finish for photo 1343191894 begin to download photo : 1343191899 download finish for photo 1343190558 begin to download photo : 1343190623 download finish for photo 1343190085 begin to download photo : 1343190156 download finish for photo 1343191098 begin to download photo : 1343191187 download finish for photo 1343191899 begin to download photo : 1343191930 download finish for photo 1343190623 begin to download photo : 1343190660 download finish for photo 1343190156 begin to download photo : 1343190202 download finish for photo 1343190660 begin to download photo : 1343190690 download finish for photo 1343191930 begin to download photo : 1343192007 download finish for photo 1343191187 begin to download photo : 1343191264 download finish for photo 1343190202 begin to download photo : 1343190503 download finish for photo 1343191264 begin to download photo : 1343191890 download finish for photo 1343190690 begin to download photo : 1343190726 download finish for photo 1343192007 begin to download photo : 1343192095 download finish for photo 1343190503 download finish for photo 1343191890 download finish for photo 1343192095 download finish for photo 1343190726 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette213086511741721943/ imagette213086531741721943/ length of list_filenames : 20 ; length of list_pids : 20 ; length of list_args : 20 results_Auto_P21308578_11-03-2025_20_39_03.pdf 21308651 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=21308651 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213086511741721943 21308653 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=21308653 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213086531741721943 21308655 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=21308655 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343192514: '1741721833_1744143_1343190085_18cb7b7ff98bc323198994438e3e2b8f_rle_crop_3706341374_0.png', 1343192517: '1741721833_1744143_1343190020_358c9c8dc7c184a3b5689ed27b361d82_rle_crop_3706341407_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/0566153d6bcb9f54a373dcd229ef7f3d_44882669.png change filename to text .imagette213086551741721943/ imagette213086551741721943/1741721833_1744143_1343190020_358c9c8dc7c184a3b5689ed27b361d82_rle_crop_3706341407_0.png.png imagette213086551741721943/1741721833_1744143_1343190085_18cb7b7ff98bc323198994438e3e2b8f_rle_crop_3706341374_0.png.png imagette213086581741721943/ imagette213086601741721943/ imagette213086611741721943/ imagette213086621741721943/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/f7843ecb29d3ad8242f1c843fc629996_69796455.png imagette213086551741721943 21308658 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=21308658 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213086581741721943 21308660 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=21308660 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213086601741721943 21308661 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=21308661 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213086611741721943 21308662 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=21308662 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213086621741721943 21308652 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=21308652 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343192542: '1741721833_1744143_1343190020_358c9c8dc7c184a3b5689ed27b361d82_rle_crop_3706341417_0.png'} change filename to text .imagette213086521741721943/ imagette213086521741721943/1741721833_1744143_1343190020_358c9c8dc7c184a3b5689ed27b361d82_rle_crop_3706341417_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/fd25d28b2c0f00418fccc27d2d79199e_8762194.png imagette213086521741721943 21308657 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=21308657 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343192489: '1741721833_1744143_1343190020_358c9c8dc7c184a3b5689ed27b361d82_rle_crop_3706341411_0.png'} change filename to text .imagette213086571741721943/ imagette213086571741721943/1741721833_1744143_1343190020_358c9c8dc7c184a3b5689ed27b361d82_rle_crop_3706341411_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/250d93d1779c6e4a8ce4db5425521c6e_21653426.png imagette213086571741721943 21308659 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=21308659 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343192535: '1741721833_1744143_1343190156_f28831f26f2f8bb43e94398cd98e7df7_rle_crop_3706341360_0.png'} change filename to text .imagette213086591741721943/ imagette213086591741721943/1741721833_1744143_1343190156_f28831f26f2f8bb43e94398cd98e7df7_rle_crop_3706341360_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/ce5e17279980226b5c51b11059410f43_24180456.png imagette213086591741721943 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21308578 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21308663,21308664,21308665,21308666,21308667,21308668,21308669,21308670,21308671,21308672,21308673,21308674?tags=mal_croppe,Carton_brun,cartonnette,papier,autre_refus,environnement,Teint_Dans_La_Masse,flou,Carton_gris,kraft,plastique,metal your option no_mail is active, we will not send the real mail to your client args[1343192095] : ('0.18335263636671284',) no score found for photo 1343192095 We are sending mail with results at report@fotonower.com args[1343192007] : ('0.18335263636671284',) no score found for photo 1343192007 We are sending mail with results at report@fotonower.com args[1343191930] : ('0.18335263636671284',) no score found for photo 1343191930 We are sending mail with results at report@fotonower.com args[1343191899] : ('0.18335263636671284',) no score found for photo 1343191899 We are sending mail with results at report@fotonower.com args[1343191894] : ('0.18335263636671284',) no score found for photo 1343191894 We are sending mail with results at report@fotonower.com args[1343191890] : ('0.18335263636671284',) no score found for photo 1343191890 We are sending mail with results at report@fotonower.com args[1343191264] : ('0.18335263636671284',) no score found for photo 1343191264 We are sending mail with results at report@fotonower.com args[1343191187] : ('0.18335263636671284',) no score found for photo 1343191187 We are sending mail with results at report@fotonower.com args[1343191098] : ('0.18335263636671284',) no score found for photo 1343191098 We are sending mail with results at report@fotonower.com args[1343191000] : ('0.18335263636671284',) no score found for photo 1343191000 We are sending mail with results at report@fotonower.com args[1343190726] : ('0.18335263636671284',) no score found for photo 1343190726 We are sending mail with results at report@fotonower.com args[1343190690] : ('0.18335263636671284',) no score found for photo 1343190690 We are sending mail with results at report@fotonower.com args[1343190660] : ('0.18335263636671284',) no score found for photo 1343190660 We are sending mail with results at report@fotonower.com args[1343190623] : ('0.18335263636671284',) no score found for photo 1343190623 We are sending mail with results at report@fotonower.com args[1343190558] : ('0.18335263636671284',) no score found for photo 1343190558 We are sending mail with results at report@fotonower.com args[1343190503] : ('0.18335263636671284',) no score found for photo 1343190503 We are sending mail with results at report@fotonower.com args[1343190202] : ('0.18335263636671284',) no score found for photo 1343190202 We are sending mail with results at report@fotonower.com args[1343190156] : ('0.18335263636671284',) no score found for photo 1343190156 We are sending mail with results at report@fotonower.com args[1343190085] : ('0.18335263636671284',) no score found for photo 1343190085 We are sending mail with results at report@fotonower.com args[1343190020] : ('0.18335263636671284',) no score found for photo 1343190020 We are sending mail with results at report@fotonower.com refus_total : 0.18335263636671284 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=21308578 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 1000 error for generate pdf : 'autre_refus' After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21308578]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1343192095, 1343192007, 1343191930, 1343191899, 1343191894, 1343191890, 1343191264, 1343191187, 1343191098, 1343191000, 1343190726, 1343190690, 1343190660, 1343190623, 1343190558, 1343190503, 1343190202, 1343190156, 1343190085, 1343190020] map_info['map_portfolio_photo'] : {21308578: [1343192095, 1343192007, 1343191930, 1343191899, 1343191894, 1343191890, 1343191264, 1343191187, 1343191098, 1343191000, 1343190726, 1343190690, 1343190660, 1343190623, 1343190558, 1343190503, 1343190202, 1343190156, 1343190085, 1343190020, 1343189663, 1343189636, 1343189534, 1343189479, 1343189394, 1343189354, 1343188982, 1343188931, 1343188884, 1343188831, 1343188767, 1343188106, 1343188067, 1343188033, 1343187981]} final : False mtd_id 4302 list_pids : [1343192095, 1343192007, 1343191930, 1343191899, 1343191894, 1343191890, 1343191264, 1343191187, 1343191098, 1343191000, 1343190726, 1343190690, 1343190660, 1343190623, 1343190558, 1343190503, 1343190202, 1343190156, 1343190085, 1343190020] 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, '2659563') ('4302', '21308578', '1343192095', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343192007', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343191930', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343191899', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343191894', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343191890', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343191264', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343191187', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343191098', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343191000', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343190726', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343190690', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343190660', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343190623', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343190558', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343190503', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343190202', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343190156', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343190085', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343190020', None, None, None, None, None, '2659563') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 20 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', '21308578', '1343192095', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343192007', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343191930', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343191899', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343191894', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343191890', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343191264', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343191187', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343191098', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343191000', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343190726', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343190690', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343190660', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343190623', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343190558', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343190503', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343190202', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343190156', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343190085', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343190020', None, None, None, None, None, '2659563')] time used for this insertion : 0.8812718391418457 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.204892635345459 time spend to save output : 0.8816492557525635 total time spend for step 4 : 2.0865418910980225 step5:split_time_score Tue Mar 11 20:39:04 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 : ['21308578'] 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 : [('21308578',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21308578) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1343190020: {'path': 'temp/1741721942_2656000_1343190020_358c9c8dc7c184a3b5689ed27b361d82.jpg', 'extension': 'jpg'}, 1343190085: {'path': 'temp/1741721942_2656000_1343190085_18cb7b7ff98bc323198994438e3e2b8f.jpg', 'extension': 'jpg'}, 1343190156: {'path': 'temp/1741721942_2656000_1343190156_f28831f26f2f8bb43e94398cd98e7df7.jpg', 'extension': 'jpg'}, 1343190202: {'path': 'temp/1741721942_2656000_1343190202_0599540e99ddfef734240266b3a301d9.jpg', 'extension': 'jpg'}, 1343190503: {'path': 'temp/1741721942_2656000_1343190503_36c8ee2bc47f32ea8ce56590d20c43b2.jpg', 'extension': 'jpg'}, 1343191000: {'path': 'temp/1741721942_2656000_1343191000_1b7318aee44557f8af9169100d4ace24.jpg', 'extension': 'jpg'}, 1343191098: {'path': 'temp/1741721942_2656000_1343191098_371a2ad36e3efeeff0a09e27db19db94.jpg', 'extension': 'jpg'}, 1343191187: {'path': 'temp/1741721942_2656000_1343191187_dd805dcc8bc95b14f9768a97281ded59.jpg', 'extension': 'jpg'}, 1343191264: {'path': 'temp/1741721942_2656000_1343191264_72d54a31508aded7143699274b932ea8.jpg', 'extension': 'jpg'}, 1343191890: {'path': 'temp/1741721942_2656000_1343191890_699ad0eddfcd3c8e5cbb8350e5b49671.jpg', 'extension': 'jpg'}, 1343191894: {'path': 'temp/1741721942_2656000_1343191894_ad273d563b82ff1d0fe05da218483365.jpg', 'extension': 'jpg'}, 1343191899: {'path': 'temp/1741721942_2656000_1343191899_830563e47ef3ab6ac72f13da3966007b.jpg', 'extension': 'jpg'}, 1343191930: {'path': 'temp/1741721942_2656000_1343191930_7660e5278e32b4982a36d11922618101.jpg', 'extension': 'jpg'}, 1343192007: {'path': 'temp/1741721942_2656000_1343192007_f56b84f6ae1ef7590cf5b388c4e80989.jpg', 'extension': 'jpg'}, 1343192095: {'path': 'temp/1741721942_2656000_1343192095_da02c63ed62db98f1ba4287e555cece7.jpg', 'extension': 'jpg'}, 1343190558: {'path': 'temp/1741721942_2656000_1343190558_276c4f2cb5e708a77cb0d6e4870e8d9c.jpg', 'extension': 'jpg'}, 1343190623: {'path': 'temp/1741721942_2656000_1343190623_00e8afac069f74013101f6b925af5ada.jpg', 'extension': 'jpg'}, 1343190660: {'path': 'temp/1741721942_2656000_1343190660_4a90f3d0bdeb0e4c55158effae04f42b.jpg', 'extension': 'jpg'}, 1343190690: {'path': 'temp/1741721942_2656000_1343190690_820ea270c1e7e59f3d1b5a8094ebf720.jpg', 'extension': 'jpg'}, 1343190726: {'path': 'temp/1741721942_2656000_1343190726_9f4a737f2f06ae1d416c23ceb6405c77.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 = 21308578; (('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 = 21308578 group by h (('20', 35),) 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=21308578 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 (21308578) 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 (21308578) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 11032025 21308578 Nombre de photos uploadées : 35 / 23040 (0%) 11032025 21308578 Nombre de photos taguées (types de déchets): 0 / 35 (0%) 11032025 21308578 Nombre de photos taguées (volume) : 0 / 35 (0%) [{'photo_id': 1343188106, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/53c5425c2c498619159aa0fa57e211e3.jpg', 'username': None, 'uploaded_at': 1741721499, 'text': 'image_11032025_20_30_04_10164.jpg'}, {'photo_id': 1343188067, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/64d3e6e181370f149c7978e7561f5a83.jpg', 'username': None, 'uploaded_at': 1741721499, 'text': 'image_11032025_20_30_14_9127.jpg'}, {'photo_id': 1343188033, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/8f732b1ef378dc76ab6bcfbb0aa047ce.jpg', 'username': None, 'uploaded_at': 1741721499, 'text': 'image_11032025_20_30_24_10136.jpg'}, {'photo_id': 1343187981, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/7e7e6358718c8de75f71ca1f5c8885ce.jpg', 'username': None, 'uploaded_at': 1741721499, 'text': 'image_11032025_20_30_34_10135.jpg'}] 0 [] elapsed_time : load_data_split_time_score 4.291534423828125e-06 elapsed_time : order_list_meta_photo_and_scores 1.2159347534179688e-05 ??????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0013849735260009766 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21308578, '2025-03-11' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1656727,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.030527830123901367 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= 1656727 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1656727, 'dashboard_run_id': 1667774, 'mtr_portfolio_id': 21305972, 'dashboard_result_id': 9361864, '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_P21305972_11-03-2025_20_05_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21306013, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21306014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21306015, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21306017, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21306019, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21306021, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21306023, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21306026, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21306028, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21306030, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21306032, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21306034, 'pht': 3726}}"}, {'dashboat_entry_day': 1656727, 'dashboard_run_id': 1667774, 'mtr_portfolio_id': 21306716, 'dashboard_result_id': 9361865, '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_P21306716_11-03-2025_20_08_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21306753, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21306754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21306755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21306756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21306757, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21306758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21306759, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21306760, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21306761, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21306762, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21306763, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21306764, 'pht': 3726}}"}, {'dashboat_entry_day': 1656727, 'dashboard_run_id': 1667774, 'mtr_portfolio_id': 21307713, 'dashboard_result_id': 9361866, '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_P21307713_11-03-2025_20_33_05.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21307768, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21307769, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21307770, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21307771, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21307772, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21307773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21307774, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21307775, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21307776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21307777, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21307778, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21307779, 'pht': 3726}}"}, {'dashboat_entry_day': 1656727, 'dashboard_run_id': 1667774, 'mtr_portfolio_id': 21308578, 'dashboard_result_id': 9361867, '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_P21308578_11-03-2025_20_35_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21308651, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21308652, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21308653, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21308654, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21308655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21308656, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21308657, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21308658, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21308659, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21308660, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21308661, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21308662, '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 = 21305972 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': 2659407, 'mtr_portfolio_id': 21305972, 'created_at': datetime.datetime(2025, 3, 11, 20, 5, 2), 'result': '0.06434961334001617', 'result_long': None, 'result_double': None}] Qualite : 0.06434961334001617 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21305972 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21305972_11-03-2025_20_05_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21305972 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_P21305972_11-03-2025_20_05_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21306013, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21306014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21306015, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21306017, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21306019, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21306021, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21306023, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21306026, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21306028, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21306030, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21306032, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21306034, 'pht': 3726}}" where mtr_portfolio_id = 21305972 and dashboard_run_id = 1667774 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`=21305972 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9361864, 0.06434961334001617, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21305972_11-03-2025_20_05_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21306013, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21306014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21306015, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21306017, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21306019, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21306021, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21306023, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21306026, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21306028, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21306030, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21306032, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21306034, '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 = 21306716 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': 2659471, 'mtr_portfolio_id': 21306716, 'created_at': datetime.datetime(2025, 3, 11, 20, 17, 29), 'result': '0.06280255699653875', 'result_long': None, 'result_double': None}] Qualite : 0.06280255699653875 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21306716 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21306716_11-03-2025_20_08_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21306716 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_P21306716_11-03-2025_20_08_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21306753, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21306754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21306755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21306756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21306757, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21306758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21306759, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21306760, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21306761, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21306762, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21306763, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21306764, 'pht': 3726}}" where mtr_portfolio_id = 21306716 and dashboard_run_id = 1667774 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`=21306716 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9361865, 0.06280255699653875, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21306716_11-03-2025_20_08_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21306753, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21306754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21306755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21306756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21306757, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21306758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21306759, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21306760, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21306761, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21306762, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21306763, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21306764, '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 = 21307713 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': 2659513, 'mtr_portfolio_id': 21307713, 'created_at': datetime.datetime(2025, 3, 11, 20, 33, 4), 'result': '0.07786306669879538', 'result_long': None, 'result_double': None}] Qualite : 0.07786306669879538 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21307713 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21307713_11-03-2025_20_33_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21307713 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_P21307713_11-03-2025_20_33_05.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21307768, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21307769, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21307770, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21307771, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21307772, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21307773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21307774, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21307775, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21307776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21307777, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21307778, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21307779, 'pht': 3726}}" where mtr_portfolio_id = 21307713 and dashboard_run_id = 1667774 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`=21307713 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9361866, 0.07786306669879538, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21307713_11-03-2025_20_33_05.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21307768, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21307769, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21307770, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21307771, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21307772, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21307773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21307774, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21307775, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21307776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21307777, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21307778, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21307779, '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 = 21308578 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': 2659563, 'mtr_portfolio_id': 21308578, 'created_at': datetime.datetime(2025, 3, 11, 20, 38, 59), 'result': '0.18335263636671284', 'result_long': None, 'result_double': None}] Qualite : 0.18335263636671284 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21308578 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21308578_11-03-2025_20_35_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21308578 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_P21308578_11-03-2025_20_35_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21308651, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21308652, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21308653, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21308654, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21308655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21308656, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21308657, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21308658, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21308659, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21308660, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21308661, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21308662, 'pht': 3726}}" where mtr_portfolio_id = 21308578 and dashboard_run_id = 1667774 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`=21308578 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9361867, 0.18335263636671284, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21308578_11-03-2025_20_35_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21308651, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21308652, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21308653, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21308654, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21308655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21308656, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21308657, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21308658, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21308659, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21308660, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21308661, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21308662, '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 (21305972,21306716,21307713,21308578) result : ((1343168744,), (1343168800,), (1343168809,), (1343169036,), (1343169074,), (1343169127,), (1343169181,), (1343169199,), (1343169204,), (1343169296,), (1343169368,), (1343169387,), (1343169396,), (1343169474,), (1343169481,), (1343169488,), (1343169499,), (1343169505,), (1343169508,), (1343169581,), (1343169593,), (1343169611,), (1343169636,), (1343169657,), (1343169719,), (1343169725,), (1343169730,), (1343169741,), (1343169758,), (1343169791,), (1343169841,), (1343169884,), (1343169917,), (1343169931,), (1343170113,), (1343170123,), (1343170134,), (1343170143,), (1343170147,), (1343170156,), (1343170180,), (1343170183,), (1343170191,), (1343170197,), (1343170350,), (1343170396,), (1343170422,), (1343170444,), (1343170466,), (1343170499,), (1343170648,), (1343170806,), (1343170818,), (1343170844,), (1343170868,), (1343171060,), (1343171098,), (1343171133,), (1343171157,), (1343171170,), (1343171179,), (1343171202,), (1343171208,), (1343171212,), (1343171216,), (1343171221,), (1343171615,), (1343171639,), (1343171709,), (1343171759,), (1343171823,), (1343171931,), (1343172415,), (1343172128,), (1343172215,), (1343172286,), (1343172344,), (1343172820,), (1343172874,), (1343173010,), (1343173119,), (1343173786,), (1343173896,), (1343173940,), (1343174001,), (1343174179,), (1343174326,), (1343174555,), (1343174638,), (1343174709,), (1343174782,), (1343175398,), (1343175460,), (1343175629,), (1343175735,), (1343175826,), (1343175849,), (1343176500,), (1343176627,), (1343176700,), (1343177492,), (1343179146,), (1343179192,), (1343179720,), (1343179771,), (1343179801,), (1343179856,), (1343179885,), (1343180316,), (1343180400,), (1343180465,), (1343180510,), (1343180524,), (1343180551,), (1343180883,), (1343180914,), (1343180955,), (1343181025,), (1343181061,), (1343181137,), (1343181171,), (1343181207,), (1343181229,), (1343181249,), (1343181272,), (1343181542,), (1343181550,), (1343181591,), (1343181647,), (1343181685,), (1343182097,), (1343182172,), (1343182204,), (1343182208,), (1343182222,), (1343182234,), (1343182303,), (1343182270,), (1343182275,), (1343182291,), (1343182418,), (1343182431,), (1343182434,), (1343182461,), (1343182468,), (1343182470,), (1343182560,), (1343182588,), (1343182608,), (1343182612,), (1343182647,), (1343183042,), (1343183120,), (1343183173,), (1343183198,), (1343183211,), (1343183213,), (1343183516,), (1343183570,), (1343183593,), (1343183628,), (1343183918,), (1343184064,), (1343184159,), (1343184187,), (1343184213,), (1343184296,), (1343184444,), (1343184454,), (1343184457,), (1343184708,), (1343184801,), (1343184909,), (1343184959,), (1343185012,), (1343185024,), (1343185104,), (1343185114,), (1343185119,), (1343185123,), (1343185186,), (1343185206,), (1343185223,), (1343185230,), (1343185270,), (1343185292,), (1343185296,), (1343185312,), (1343185327,), (1343185332,), (1343185334,), (1343185386,), (1343185407,), (1343185414,), (1343185435,), (1343185764,), (1343185819,), (1343185851,), (1343185918,), (1343185973,), (1343185981,), (1343186363,), (1343186411,), (1343186472,), (1343186539,), (1343187190,), (1343187299,), (1343187392,), (1343187471,), (1343187560,), (1343187609,), (1343188156,), (1343187981,), (1343188033,), (1343188067,), (1343188106,), (1343188767,), (1343188831,), (1343188884,), (1343188931,), (1343188982,), (1343189354,), (1343189394,), (1343189479,), (1343189534,), (1343189636,), (1343189663,), (1343190020,), (1343190085,), (1343190156,), (1343190202,), (1343190503,), (1343190558,), (1343190623,), (1343190660,), (1343190690,), (1343190726,), (1343191000,), (1343191098,), (1343191187,), (1343191264,), (1343191890,), (1343191894,), (1343191899,), (1343191930,), (1343192007,), (1343192095,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'11032025': {'nb_upload': 35, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21308578]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1343192095, 1343192007, 1343191930, 1343191899, 1343191894, 1343191890, 1343191264, 1343191187, 1343191098, 1343191000, 1343190726, 1343190690, 1343190660, 1343190623, 1343190558, 1343190503, 1343190202, 1343190156, 1343190085, 1343190020] map_info['map_portfolio_photo'] : {21308578: [1343192095, 1343192007, 1343191930, 1343191899, 1343191894, 1343191890, 1343191264, 1343191187, 1343191098, 1343191000, 1343190726, 1343190690, 1343190660, 1343190623, 1343190558, 1343190503, 1343190202, 1343190156, 1343190085, 1343190020, 1343189663, 1343189636, 1343189534, 1343189479, 1343189394, 1343189354, 1343188982, 1343188931, 1343188884, 1343188831, 1343188767, 1343188106, 1343188067, 1343188033, 1343187981]} final : True mtd_id 4302 list_pids : [1343192095, 1343192007, 1343191930, 1343191899, 1343191894, 1343191890, 1343191264, 1343191187, 1343191098, 1343191000, 1343190726, 1343190690, 1343190660, 1343190623, 1343190558, 1343190503, 1343190202, 1343190156, 1343190085, 1343190020] Looping around the photos to save general results len do output : 1 /21308578Didn'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, '2659563') ('4302', '21308578', '1343192095', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343192007', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343191930', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343191899', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343191894', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343191890', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343191264', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343191187', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343191098', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343191000', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343190726', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343190690', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343190660', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343190623', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343190558', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343190503', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343190202', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343190156', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343190085', None, None, None, None, None, '2659563') ('4302', None, None, None, None, None, None, None, '2659563') ('4302', '21308578', '1343190020', None, None, None, None, None, '2659563') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 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, '21308578', 'None', None, None, None, None, '2659563'), ('4302', '21308578', '1343192095', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343192007', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343191930', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343191899', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343191894', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343191890', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343191264', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343191187', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343191098', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343191000', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343190726', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343190690', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343190660', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343190623', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343190558', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343190503', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343190202', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343190156', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343190085', None, None, None, None, None, '2659563'), ('4302', '21308578', '1343190020', None, None, None, None, None, '2659563')] time used for this insertion : 0.015473604202270508 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3650381565093994 time spend to save output : 0.015909433364868164 total time spend for step 5 : 0.3809475898742676 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 (2659563) 1.93user 2.16system 0:09.56elapsed 42%CPU (0avgtext+0avgdata 149920maxresident)k 44696inputs+12344outputs (140major+60322minor)pagefaults 0swaps