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 : 2373154 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 (2656356) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2656356) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21251739 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2656356'] with mtr_portfolio_ids : ['21251739'] and first list_photo_ids : [] new path : /proc/2373154/ Name: python3 Umask: 0002 State: R (running) Tgid: 2373154 Ngid: 0 Pid: 2373154 PPid: 2373153 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2373154 NSpid: 2373154 NSpgid: 2370903 NSsid: 2370903 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98328 kB VmRSS: 98328 kB RssAnon: 59760 kB RssFile: 38568 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 628 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: 63 nonvoluntary_ctxt_switches: 142 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2373154', 'Ngid': '0', 'Pid': '2373154', 'PPid': '2373153', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2373154', 'NSpid': '2373154', 'NSpgid': '2370903', 'NSsid': '2370903', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98328 kB', 'VmRSS': '98328 kB', 'RssAnon': '59760 kB', 'RssFile': '38568 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '628 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': '63', 'nonvoluntary_ctxt_switches': '142'} ('datou_batch_current', '2373154', '1106844', '0', '1106844', '865592', '98328', b'', 'marlene', '2656356') 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 (21251739) 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 (2656356 ) ) 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 (21251739) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1342778300, 'portfolio_id': 21251739}, {'photo_id': 1342778279, 'portfolio_id': 21251739}, {'photo_id': 1342778260, 'portfolio_id': 21251739}, {'photo_id': 1342778241, 'portfolio_id': 21251739}, {'photo_id': 1342777913, 'portfolio_id': 21251739}, {'photo_id': 1342777851, 'portfolio_id': 21251739}, {'photo_id': 1342777784, 'portfolio_id': 21251739}, {'photo_id': 1342777734, 'portfolio_id': 21251739}, {'photo_id': 1342777664, 'portfolio_id': 21251739}, {'photo_id': 1342777222, 'portfolio_id': 21251739}, {'photo_id': 1342777178, 'portfolio_id': 21251739}, {'photo_id': 1342777078, 'portfolio_id': 21251739}, {'photo_id': 1342776945, 'portfolio_id': 21251739}, {'photo_id': 1342776814, 'portfolio_id': 21251739}, {'photo_id': 1342776779, 'portfolio_id': 21251739}, {'photo_id': 1342776365, 'portfolio_id': 21251739}, {'photo_id': 1342776268, 'portfolio_id': 21251739}, {'photo_id': 1342776116, 'portfolio_id': 21251739}, {'photo_id': 1342776048, 'portfolio_id': 21251739}, {'photo_id': 1342775484, 'portfolio_id': 21251739}, {'photo_id': 1342775481, 'portfolio_id': 21251739}, {'photo_id': 1342775477, 'portfolio_id': 21251739}, {'photo_id': 1342775472, 'portfolio_id': 21251739}, {'photo_id': 1342775468, 'portfolio_id': 21251739}, {'photo_id': 1342775463, 'portfolio_id': 21251739}, {'photo_id': 1342775373, 'portfolio_id': 21251739}, {'photo_id': 1342775347, 'portfolio_id': 21251739}, {'photo_id': 1342775314, 'portfolio_id': 21251739}, {'photo_id': 1342775153, 'portfolio_id': 21251739}, {'photo_id': 1342775132, 'portfolio_id': 21251739}, {'photo_id': 1342775111, 'portfolio_id': 21251739}, {'photo_id': 1342774815, 'portfolio_id': 21251739}, {'photo_id': 1342774791, 'portfolio_id': 21251739}, {'photo_id': 1342774755, 'portfolio_id': 21251739}, {'photo_id': 1342774730, 'portfolio_id': 21251739}] map_portfolio_id_photo_id: {21251739: [1342778300, 1342778279, 1342778260, 1342778241, 1342777913, 1342777851, 1342777784, 1342777734, 1342777664, 1342777222, 1342777178, 1342777078, 1342776945, 1342776814, 1342776779, 1342776365, 1342776268, 1342776116, 1342776048, 1342775484, 1342775481, 1342775477, 1342775472, 1342775468, 1342775463, 1342775373, 1342775347, 1342775314, 1342775153, 1342775132, 1342775111, 1342774815, 1342774791, 1342774755, 1342774730]} ##### 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.016083717346191406 #### 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 02:39:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21251739) 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 : 21251739 get user id for portfolio 21251739 get sub ptf for main ptf 21251739, type 3726 and hashtags ['environnement', 'plastique', 'autre_refus', 'kraft', 'flou', 'papier', 'cartonnette', 'metal', 'Teint_Dans_La_Masse', 'mal_croppe', 'Carton_gris', '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`=21251739 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','plastique','autre_refus','kraft','flou','papier','cartonnette','metal','Teint_Dans_La_Masse','mal_croppe','Carton_gris','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`=21251739 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','plastique','autre_refus','kraft','flou','papier','cartonnette','metal','Teint_Dans_La_Masse','mal_croppe','Carton_gris','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 21251739, 'sub_port_id': 21251743, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13840094, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 36, 59)}, 'plastique': {'main_port_id': 21251739, 'sub_port_id': 21251744, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13840095, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 36, 59)}, 'cartonnette': {'main_port_id': 21251739, 'sub_port_id': 21251745, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13840096, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 36, 59)}, 'flou': {'main_port_id': 21251739, 'sub_port_id': 21251746, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13840097, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 36, 59)}, 'kraft': {'main_port_id': 21251739, 'sub_port_id': 21251747, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13840098, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 36, 59)}, 'Carton_brun': {'main_port_id': 21251739, 'sub_port_id': 21251748, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13840099, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 36, 59)}, 'autre_refus': {'main_port_id': 21251739, 'sub_port_id': 21251749, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13840100, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 36, 59)}, 'Carton_gris': {'main_port_id': 21251739, 'sub_port_id': 21251750, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13840101, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 36, 59)}, 'mal_croppe': {'main_port_id': 21251739, 'sub_port_id': 21251751, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13840102, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 36, 59)}, 'environnement': {'main_port_id': 21251739, 'sub_port_id': 21251752, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13840103, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 36, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 21251739, 'sub_port_id': 21251753, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13840104, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 36, 59)}, 'metal': {'main_port_id': 21251739, 'sub_port_id': 21251754, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13840105, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 36, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21251743 , 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=21251739 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 (21251743) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21251739) result : ((1342774730,), (1342774755,), (1342774791,), (1342774815,), (1342775111,), (1342775132,), (1342775153,), (1342775314,), (1342775347,), (1342775373,), (1342775463,), (1342775468,), (1342775472,), (1342775477,), (1342775481,), (1342775484,), (1342776048,), (1342776116,), (1342776268,), (1342776365,), (1342776779,), (1342776814,), (1342776945,), (1342777078,), (1342777178,), (1342777222,), (1342777664,), (1342777734,), (1342777784,), (1342777851,), (1342777913,), (1342778241,), (1342778260,), (1342778279,), (1342778300,)) 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 (1342778300) 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 21251744 , 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=21251739 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 (21251744) result : ((1342775955,), (1342775962,), (1342775969,), (1342775978,), (1342775987,), (1342778364,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21251739) result : ((1342774730,), (1342774755,), (1342774791,), (1342774815,), (1342775111,), (1342775132,), (1342775153,), (1342775314,), (1342775347,), (1342775373,), (1342775463,), (1342775468,), (1342775472,), (1342775477,), (1342775481,), (1342775484,), (1342776048,), (1342776116,), (1342776268,), (1342776365,), (1342776779,), (1342776814,), (1342776945,), (1342777078,), (1342777178,), (1342777222,), (1342777664,), (1342777734,), (1342777784,), (1342777851,), (1342777913,), (1342778241,), (1342778260,), (1342778279,), (1342778300,)) 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 (1342778300) 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 21251745 , 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=21251739 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 (21251745) result : ((1342775854,), (1342775863,), (1342778078,), (1342778343,), (1342778346,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21251739) result : ((1342774730,), (1342774755,), (1342774791,), (1342774815,), (1342775111,), (1342775132,), (1342775153,), (1342775314,), (1342775347,), (1342775373,), (1342775463,), (1342775468,), (1342775472,), (1342775477,), (1342775481,), (1342775484,), (1342776048,), (1342776116,), (1342776268,), (1342776365,), (1342776779,), (1342776814,), (1342776945,), (1342777078,), (1342777178,), (1342777222,), (1342777664,), (1342777734,), (1342777784,), (1342777851,), (1342777913,), (1342778241,), (1342778260,), (1342778279,), (1342778300,)) 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 (1342778300) 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 21251746 , 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=21251739 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 (21251746) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21251739) result : ((1342774730,), (1342774755,), (1342774791,), (1342774815,), (1342775111,), (1342775132,), (1342775153,), (1342775314,), (1342775347,), (1342775373,), (1342775463,), (1342775468,), (1342775472,), (1342775477,), (1342775481,), (1342775484,), (1342776048,), (1342776116,), (1342776268,), (1342776365,), (1342776779,), (1342776814,), (1342776945,), (1342777078,), (1342777178,), (1342777222,), (1342777664,), (1342777734,), (1342777784,), (1342777851,), (1342777913,), (1342778241,), (1342778260,), (1342778279,), (1342778300,)) 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 (1342778300) 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 21251747 , 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=21251739 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 (21251747) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21251739) result : ((1342774730,), (1342774755,), (1342774791,), (1342774815,), (1342775111,), (1342775132,), (1342775153,), (1342775314,), (1342775347,), (1342775373,), (1342775463,), (1342775468,), (1342775472,), (1342775477,), (1342775481,), (1342775484,), (1342776048,), (1342776116,), (1342776268,), (1342776365,), (1342776779,), (1342776814,), (1342776945,), (1342777078,), (1342777178,), (1342777222,), (1342777664,), (1342777734,), (1342777784,), (1342777851,), (1342777913,), (1342778241,), (1342778260,), (1342778279,), (1342778300,)) 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 (1342778300) 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 21251748 , 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=21251739 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 (21251748) result : ((1342775915,), (1342775923,), (1342778354,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21251739) result : ((1342774730,), (1342774755,), (1342774791,), (1342774815,), (1342775111,), (1342775132,), (1342775153,), (1342775314,), (1342775347,), (1342775373,), (1342775463,), (1342775468,), (1342775472,), (1342775477,), (1342775481,), (1342775484,), (1342776048,), (1342776116,), (1342776268,), (1342776365,), (1342776779,), (1342776814,), (1342776945,), (1342777078,), (1342777178,), (1342777222,), (1342777664,), (1342777734,), (1342777784,), (1342777851,), (1342777913,), (1342778241,), (1342778260,), (1342778279,), (1342778300,)) 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 (1342778300) 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 21251749 , 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=21251739 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 (21251749) result : ((1342775693,), (1342775701,), (1342775705,), (1342775712,), (1342775722,), (1342778068,), (1342778069,), (1342778070,), (1342778071,), (1342778114,), (1342778118,), (1342778294,), (1342778296,), (1342778298,), (1342778302,), (1342778305,), (1342778309,), (1342778311,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21251739) result : ((1342774730,), (1342774755,), (1342774791,), (1342774815,), (1342775111,), (1342775132,), (1342775153,), (1342775314,), (1342775347,), (1342775373,), (1342775463,), (1342775468,), (1342775472,), (1342775477,), (1342775481,), (1342775484,), (1342776048,), (1342776116,), (1342776268,), (1342776365,), (1342776779,), (1342776814,), (1342776945,), (1342777078,), (1342777178,), (1342777222,), (1342777664,), (1342777734,), (1342777784,), (1342777851,), (1342777913,), (1342778241,), (1342778260,), (1342778279,), (1342778300,)) 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 (1342778300) 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 21251750 , 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=21251739 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 (21251750) result : ((1342775774,), (1342775780,), (1342775788,), (1342775796,), (1342778134,), (1342778336,), (1342778338,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21251739) result : ((1342774730,), (1342774755,), (1342774791,), (1342774815,), (1342775111,), (1342775132,), (1342775153,), (1342775314,), (1342775347,), (1342775373,), (1342775463,), (1342775468,), (1342775472,), (1342775477,), (1342775481,), (1342775484,), (1342776048,), (1342776116,), (1342776268,), (1342776365,), (1342776779,), (1342776814,), (1342776945,), (1342777078,), (1342777178,), (1342777222,), (1342777664,), (1342777734,), (1342777784,), (1342777851,), (1342777913,), (1342778241,), (1342778260,), (1342778279,), (1342778300,)) 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 (1342778300) 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 21251751 , 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=21251739 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 (21251751) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21251739) result : ((1342774730,), (1342774755,), (1342774791,), (1342774815,), (1342775111,), (1342775132,), (1342775153,), (1342775314,), (1342775347,), (1342775373,), (1342775463,), (1342775468,), (1342775472,), (1342775477,), (1342775481,), (1342775484,), (1342776048,), (1342776116,), (1342776268,), (1342776365,), (1342776779,), (1342776814,), (1342776945,), (1342777078,), (1342777178,), (1342777222,), (1342777664,), (1342777734,), (1342777784,), (1342777851,), (1342777913,), (1342778241,), (1342778260,), (1342778279,), (1342778300,)) 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 (1342778300) 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 21251752 , 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=21251739 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 (21251752) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21251739) result : ((1342774730,), (1342774755,), (1342774791,), (1342774815,), (1342775111,), (1342775132,), (1342775153,), (1342775314,), (1342775347,), (1342775373,), (1342775463,), (1342775468,), (1342775472,), (1342775477,), (1342775481,), (1342775484,), (1342776048,), (1342776116,), (1342776268,), (1342776365,), (1342776779,), (1342776814,), (1342776945,), (1342777078,), (1342777178,), (1342777222,), (1342777664,), (1342777734,), (1342777784,), (1342777851,), (1342777913,), (1342778241,), (1342778260,), (1342778279,), (1342778300,)) 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 (1342778300) 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 21251753 , 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=21251739 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 (21251753) result : ((1342778277,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21251739) result : ((1342774730,), (1342774755,), (1342774791,), (1342774815,), (1342775111,), (1342775132,), (1342775153,), (1342775314,), (1342775347,), (1342775373,), (1342775463,), (1342775468,), (1342775472,), (1342775477,), (1342775481,), (1342775484,), (1342776048,), (1342776116,), (1342776268,), (1342776365,), (1342776779,), (1342776814,), (1342776945,), (1342777078,), (1342777178,), (1342777222,), (1342777664,), (1342777734,), (1342777784,), (1342777851,), (1342777913,), (1342778241,), (1342778260,), (1342778279,), (1342778300,)) 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 (1342778300) 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 21251754 , 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=21251739 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 (21251754) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21251739) result : ((1342774730,), (1342774755,), (1342774791,), (1342774815,), (1342775111,), (1342775132,), (1342775153,), (1342775314,), (1342775347,), (1342775373,), (1342775463,), (1342775468,), (1342775472,), (1342775477,), (1342775481,), (1342775484,), (1342776048,), (1342776116,), (1342776268,), (1342776365,), (1342776779,), (1342776814,), (1342776945,), (1342777078,), (1342777178,), (1342777222,), (1342777664,), (1342777734,), (1342777784,), (1342777851,), (1342777913,), (1342778241,), (1342778260,), (1342778279,), (1342778300,)) 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 (1342778300) 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`=21251739 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','plastique','autre_refus','kraft','flou','papier','cartonnette','metal','Teint_Dans_La_Masse','mal_croppe','Carton_gris','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`=21251739 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','plastique','autre_refus','kraft','flou','papier','cartonnette','metal','Teint_Dans_La_Masse','mal_croppe','Carton_gris','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 21251739, 'sub_port_id': 21251755, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13840106, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 37, 1)}, 'plastique': {'main_port_id': 21251739, 'sub_port_id': 21251756, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13840107, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 37, 1)}, 'cartonnette': {'main_port_id': 21251739, 'sub_port_id': 21251757, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13840108, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 37, 1)}, 'flou': {'main_port_id': 21251739, 'sub_port_id': 21251758, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13840109, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 37, 1)}, 'kraft': {'main_port_id': 21251739, 'sub_port_id': 21251759, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13840110, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 37, 1)}, 'Carton_brun': {'main_port_id': 21251739, 'sub_port_id': 21251760, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13840111, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 37, 1)}, 'autre_refus': {'main_port_id': 21251739, 'sub_port_id': 21251761, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13840112, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 37, 1)}, 'Carton_gris': {'main_port_id': 21251739, 'sub_port_id': 21251762, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13840113, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 37, 1)}, 'mal_croppe': {'main_port_id': 21251739, 'sub_port_id': 21251763, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13840114, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 37, 1)}, 'environnement': {'main_port_id': 21251739, 'sub_port_id': 21251764, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13840115, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 37, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 21251739, 'sub_port_id': 21251765, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13840116, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 37, 1)}, 'metal': {'main_port_id': 21251739, 'sub_port_id': 21251766, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13840117, 'last_updated_at': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 2, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 2, 37, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21251755,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21251743 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21251756,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21251744 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21251757,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21251745 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21251758,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21251746 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21251759,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21251747 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21251760,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21251748 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21251761,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21251749 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21251762,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21251750 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21251763,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21251751 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21251764,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21251752 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21251765,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21251753 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21251766,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21251754 lien utilise dans velours : https://www.fotonower.com/velours/21251755,21251756,21251757,21251758,21251759,21251760,21251761,21251762,21251763,21251764,21251765,21251766?tags=papier,plastique,cartonnette,flou,kraft,Carton_brun,autre_refus,Carton_gris,mal_croppe,environnement,Teint_Dans_La_Masse,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21251739]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1342778300, 1342778279, 1342778260, 1342778241, 1342777913, 1342777851, 1342777784, 1342777734, 1342777664, 1342777222, 1342777178, 1342777078, 1342776945, 1342776814, 1342776779] map_info['map_portfolio_photo'] : {21251739: [1342778300, 1342778279, 1342778260, 1342778241, 1342777913, 1342777851, 1342777784, 1342777734, 1342777664, 1342777222, 1342777178, 1342777078, 1342776945, 1342776814, 1342776779, 1342776365, 1342776268, 1342776116, 1342776048, 1342775484, 1342775481, 1342775477, 1342775472, 1342775468, 1342775463, 1342775373, 1342775347, 1342775314, 1342775153, 1342775132, 1342775111, 1342774815, 1342774791, 1342774755, 1342774730]} final : False mtd_id 4302 list_pids : [1342778300, 1342778279, 1342778260, 1342778241, 1342777913, 1342777851, 1342777784, 1342777734, 1342777664, 1342777222, 1342777178, 1342777078, 1342776945, 1342776814, 1342776779] Looping around the photos to save general results len do output : 1 /21251739. 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, '2656356') ('4302', '21251739', '1342778300', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342778279', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342778260', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342778241', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342777913', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342777851', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342777784', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342777734', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342777664', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342777222', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342777178', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342777078', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342776945', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342776814', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342776779', None, None, None, None, None, '2656356') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21251739', "{'papier': 21251743, 'plastique': 21251744, 'cartonnette': 21251745, 'flou': 21251746, 'kraft': 21251747, 'Carton_brun': 21251748, 'autre_refus': 21251749, 'Carton_gris': 21251750, 'mal_croppe': 21251751, 'environnement': 21251752, 'Teint_Dans_La_Masse': 21251753, 'metal': 21251754}", None, None, None, None, '2656356'), ('4302', '21251739', '1342778300', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342778279', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342778260', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342778241', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342777913', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342777851', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342777784', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342777734', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342777664', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342777222', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342777178', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342777078', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342776945', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342776814', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342776779', None, None, None, None, None, '2656356')] time used for this insertion : 0.01576828956604004 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.7437729835510254 time spend to save output : 0.01615619659423828 total time spend for step 1 : 0.7599291801452637 step2:final Tue Mar 11 02:39:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21251739) 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 21251739 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1342774815,1342774791,1342774755,1342774730,1342775153,1342775132,1342775111,1342775373,1342775347,1342775314,1342775484,1342775481,1342775477,1342775472,1342775468,1342775463,1342776365,1342776268,1342776116,1342776048,1342777222,1342777178,1342777078,1342776945,1342776814,1342776779,1342777913,1342777851,1342777784,1342777734,1342777664,1342778300,1342778279,1342778260,1342778241); 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([21251739]) Inside saveOutput : final : False verbose : True original output for save of step final : {1342778300: ('0.0630446525813429',), 1342778279: ('0.0630446525813429',), 1342778260: ('0.0630446525813429',), 1342778241: ('0.0630446525813429',), 1342777913: ('0.0630446525813429',), 1342777851: ('0.0630446525813429',), 1342777784: ('0.0630446525813429',), 1342777734: ('0.0630446525813429',), 1342777664: ('0.0630446525813429',), 1342777222: ('0.0630446525813429',), 1342777178: ('0.0630446525813429',), 1342777078: ('0.0630446525813429',), 1342776945: ('0.0630446525813429',), 1342776814: ('0.0630446525813429',), 1342776779: ('0.0630446525813429',)} new output for save of step final : {1342778300: ('0.0630446525813429',), 1342778279: ('0.0630446525813429',), 1342778260: ('0.0630446525813429',), 1342778241: ('0.0630446525813429',), 1342777913: ('0.0630446525813429',), 1342777851: ('0.0630446525813429',), 1342777784: ('0.0630446525813429',), 1342777734: ('0.0630446525813429',), 1342777664: ('0.0630446525813429',), 1342777222: ('0.0630446525813429',), 1342777178: ('0.0630446525813429',), 1342777078: ('0.0630446525813429',), 1342776945: ('0.0630446525813429',), 1342776814: ('0.0630446525813429',), 1342776779: ('0.0630446525813429',)} [1342778300, 1342778279, 1342778260, 1342778241, 1342777913, 1342777851, 1342777784, 1342777734, 1342777664, 1342777222, 1342777178, 1342777078, 1342776945, 1342776814, 1342776779] map_info['map_portfolio_photo'] : {21251739: [1342778300, 1342778279, 1342778260, 1342778241, 1342777913, 1342777851, 1342777784, 1342777734, 1342777664, 1342777222, 1342777178, 1342777078, 1342776945, 1342776814, 1342776779, 1342776365, 1342776268, 1342776116, 1342776048, 1342775484, 1342775481, 1342775477, 1342775472, 1342775468, 1342775463, 1342775373, 1342775347, 1342775314, 1342775153, 1342775132, 1342775111, 1342774815, 1342774791, 1342774755, 1342774730]} final : False mtd_id 4302 list_pids : [1342778300, 1342778279, 1342778260, 1342778241, 1342777913, 1342777851, 1342777784, 1342777734, 1342777664, 1342777222, 1342777178, 1342777078, 1342776945, 1342776814, 1342776779] Looping around the photos to save general results len do output : 15 /1342778300.Didn't retrieve data . /1342778279.Didn't retrieve data . /1342778260.Didn't retrieve data . /1342778241.Didn't retrieve data . /1342777913.Didn't retrieve data . /1342777851.Didn't retrieve data . /1342777784.Didn't retrieve data . /1342777734.Didn't retrieve data . /1342777664.Didn't retrieve data . /1342777222.Didn't retrieve data . /1342777178.Didn't retrieve data . /1342777078.Didn't retrieve data . /1342776945.Didn't retrieve data . /1342776814.Didn't retrieve data . /1342776779.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, '2656356') ('4302', '21251739', '1342778300', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342778279', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342778260', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342778241', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342777913', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342777851', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342777784', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342777734', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342777664', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342777222', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342777178', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342777078', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342776945', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342776814', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342776779', None, None, None, None, None, '2656356') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 45 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', '21251739', '1342778300', '0.0630446525813429', None, None, None, None, '2656356'), ('4302', '21251739', '1342778279', '0.0630446525813429', None, None, None, None, '2656356'), ('4302', '21251739', '1342778260', '0.0630446525813429', None, None, None, None, '2656356'), ('4302', '21251739', '1342778241', '0.0630446525813429', None, None, None, None, '2656356'), ('4302', '21251739', '1342777913', '0.0630446525813429', None, None, None, None, '2656356'), ('4302', '21251739', '1342777851', '0.0630446525813429', None, None, None, None, '2656356'), ('4302', '21251739', '1342777784', '0.0630446525813429', None, None, None, None, '2656356'), ('4302', '21251739', '1342777734', '0.0630446525813429', None, None, None, None, '2656356'), ('4302', '21251739', '1342777664', '0.0630446525813429', None, None, None, None, '2656356'), ('4302', '21251739', '1342777222', '0.0630446525813429', None, None, None, None, '2656356'), ('4302', '21251739', '1342777178', '0.0630446525813429', None, None, None, None, '2656356'), ('4302', '21251739', '1342777078', '0.0630446525813429', None, None, None, None, '2656356'), ('4302', '21251739', '1342776945', '0.0630446525813429', None, None, None, None, '2656356'), ('4302', '21251739', '1342776814', '0.0630446525813429', None, None, None, None, '2656356'), ('4302', '21251739', '1342776779', '0.0630446525813429', None, None, None, None, '2656356')] time used for this insertion : 0.017358064651489258 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07091856002807617 time spend to save output : 0.018116474151611328 total time spend for step 2 : 0.0890350341796875 step3:velours_tree Tue Mar 11 02:39:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21251739: [{'papier': 21251743, 'plastique': 21251744, 'cartonnette': 21251745, 'flou': 21251746, 'kraft': 21251747, 'Carton_brun': 21251748, 'autre_refus': 21251749, 'Carton_gris': 21251750, 'mal_croppe': 21251751, 'environnement': 21251752, 'Teint_Dans_La_Masse': 21251753, 'metal': 21251754}]} input_args_next_step : {21251739: ()} output_args : {21251739: [{'papier': 21251743, 'plastique': 21251744, 'cartonnette': 21251745, 'flou': 21251746, 'kraft': 21251747, 'Carton_brun': 21251748, 'autre_refus': 21251749, 'Carton_gris': 21251750, 'mal_croppe': 21251751, 'environnement': 21251752, 'Teint_Dans_La_Masse': 21251753, 'metal': 21251754}]} args : 21251739 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 : ({'papier': 21251743, 'plastique': 21251744, 'cartonnette': 21251745, 'flou': 21251746, 'kraft': 21251747, 'Carton_brun': 21251748, 'autre_refus': 21251749, 'Carton_gris': 21251750, 'mal_croppe': 21251751, 'environnement': 21251752, 'Teint_Dans_La_Masse': 21251753, 'metal': 21251754},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21251739) 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([21251739]) 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.5677196979522705 time spend to save output : 8.58306884765625e-05 total time spend for step 3 : 0.5678055286407471 step4:send_mail_cod Tue Mar 11 02:39:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1342778300: ('0.0630446525813429',), 1342778279: ('0.0630446525813429',), 1342778260: ('0.0630446525813429',), 1342778241: ('0.0630446525813429',), 1342777913: ('0.0630446525813429',), 1342777851: ('0.0630446525813429',), 1342777784: ('0.0630446525813429',), 1342777734: ('0.0630446525813429',), 1342777664: ('0.0630446525813429',), 1342777222: ('0.0630446525813429',), 1342777178: ('0.0630446525813429',), 1342777078: ('0.0630446525813429',), 1342776945: ('0.0630446525813429',), 1342776814: ('0.0630446525813429',), 1342776779: ('0.0630446525813429',)} input_args_next_step : {1342778300: ()} output_args : {1342778300: ('0.0630446525813429',), 1342778279: ('0.0630446525813429',), 1342778260: ('0.0630446525813429',), 1342778241: ('0.0630446525813429',), 1342777913: ('0.0630446525813429',), 1342777851: ('0.0630446525813429',), 1342777784: ('0.0630446525813429',), 1342777734: ('0.0630446525813429',), 1342777664: ('0.0630446525813429',), 1342777222: ('0.0630446525813429',), 1342777178: ('0.0630446525813429',), 1342777078: ('0.0630446525813429',), 1342776945: ('0.0630446525813429',), 1342776814: ('0.0630446525813429',), 1342776779: ('0.0630446525813429',)} args : 1342778300 depend.output_id : 0 input_args_next_step : {1342778300: ('0.0630446525813429',), 1342778279: ()} output_args : {1342778300: ('0.0630446525813429',), 1342778279: ('0.0630446525813429',), 1342778260: ('0.0630446525813429',), 1342778241: ('0.0630446525813429',), 1342777913: ('0.0630446525813429',), 1342777851: ('0.0630446525813429',), 1342777784: ('0.0630446525813429',), 1342777734: ('0.0630446525813429',), 1342777664: ('0.0630446525813429',), 1342777222: ('0.0630446525813429',), 1342777178: ('0.0630446525813429',), 1342777078: ('0.0630446525813429',), 1342776945: ('0.0630446525813429',), 1342776814: ('0.0630446525813429',), 1342776779: ('0.0630446525813429',)} args : 1342778279 depend.output_id : 0 input_args_next_step : {1342778300: ('0.0630446525813429',), 1342778279: ('0.0630446525813429',), 1342778260: ()} output_args : {1342778300: ('0.0630446525813429',), 1342778279: ('0.0630446525813429',), 1342778260: ('0.0630446525813429',), 1342778241: ('0.0630446525813429',), 1342777913: ('0.0630446525813429',), 1342777851: ('0.0630446525813429',), 1342777784: ('0.0630446525813429',), 1342777734: ('0.0630446525813429',), 1342777664: ('0.0630446525813429',), 1342777222: ('0.0630446525813429',), 1342777178: ('0.0630446525813429',), 1342777078: ('0.0630446525813429',), 1342776945: ('0.0630446525813429',), 1342776814: ('0.0630446525813429',), 1342776779: ('0.0630446525813429',)} args : 1342778260 depend.output_id : 0 input_args_next_step : {1342778300: ('0.0630446525813429',), 1342778279: ('0.0630446525813429',), 1342778260: ('0.0630446525813429',), 1342778241: ()} output_args : {1342778300: ('0.0630446525813429',), 1342778279: ('0.0630446525813429',), 1342778260: ('0.0630446525813429',), 1342778241: ('0.0630446525813429',), 1342777913: ('0.0630446525813429',), 1342777851: ('0.0630446525813429',), 1342777784: ('0.0630446525813429',), 1342777734: ('0.0630446525813429',), 1342777664: ('0.0630446525813429',), 1342777222: ('0.0630446525813429',), 1342777178: ('0.0630446525813429',), 1342777078: ('0.0630446525813429',), 1342776945: ('0.0630446525813429',), 1342776814: ('0.0630446525813429',), 1342776779: ('0.0630446525813429',)} args : 1342778241 depend.output_id : 0 input_args_next_step : {1342778300: ('0.0630446525813429',), 1342778279: ('0.0630446525813429',), 1342778260: ('0.0630446525813429',), 1342778241: ('0.0630446525813429',), 1342777913: ()} output_args : {1342778300: ('0.0630446525813429',), 1342778279: ('0.0630446525813429',), 1342778260: ('0.0630446525813429',), 1342778241: ('0.0630446525813429',), 1342777913: ('0.0630446525813429',), 1342777851: ('0.0630446525813429',), 1342777784: ('0.0630446525813429',), 1342777734: ('0.0630446525813429',), 1342777664: ('0.0630446525813429',), 1342777222: ('0.0630446525813429',), 1342777178: ('0.0630446525813429',), 1342777078: ('0.0630446525813429',), 1342776945: ('0.0630446525813429',), 1342776814: ('0.0630446525813429',), 1342776779: ('0.0630446525813429',)} args : 1342777913 depend.output_id : 0 input_args_next_step : {1342778300: ('0.0630446525813429',), 1342778279: ('0.0630446525813429',), 1342778260: ('0.0630446525813429',), 1342778241: ('0.0630446525813429',), 1342777913: ('0.0630446525813429',), 1342777851: ()} output_args : {1342778300: ('0.0630446525813429',), 1342778279: ('0.0630446525813429',), 1342778260: ('0.0630446525813429',), 1342778241: ('0.0630446525813429',), 1342777913: ('0.0630446525813429',), 1342777851: ('0.0630446525813429',), 1342777784: ('0.0630446525813429',), 1342777734: ('0.0630446525813429',), 1342777664: ('0.0630446525813429',), 1342777222: ('0.0630446525813429',), 1342777178: ('0.0630446525813429',), 1342777078: ('0.0630446525813429',), 1342776945: ('0.0630446525813429',), 1342776814: ('0.0630446525813429',), 1342776779: ('0.0630446525813429',)} args : 1342777851 depend.output_id : 0 input_args_next_step : {1342778300: ('0.0630446525813429',), 1342778279: ('0.0630446525813429',), 1342778260: ('0.0630446525813429',), 1342778241: ('0.0630446525813429',), 1342777913: ('0.0630446525813429',), 1342777851: ('0.0630446525813429',), 1342777784: ()} output_args : {1342778300: ('0.0630446525813429',), 1342778279: ('0.0630446525813429',), 1342778260: ('0.0630446525813429',), 1342778241: ('0.0630446525813429',), 1342777913: ('0.0630446525813429',), 1342777851: ('0.0630446525813429',), 1342777784: ('0.0630446525813429',), 1342777734: ('0.0630446525813429',), 1342777664: ('0.0630446525813429',), 1342777222: ('0.0630446525813429',), 1342777178: ('0.0630446525813429',), 1342777078: ('0.0630446525813429',), 1342776945: ('0.0630446525813429',), 1342776814: ('0.0630446525813429',), 1342776779: ('0.0630446525813429',)} args : 1342777784 depend.output_id : 0 input_args_next_step : {1342778300: ('0.0630446525813429',), 1342778279: ('0.0630446525813429',), 1342778260: ('0.0630446525813429',), 1342778241: ('0.0630446525813429',), 1342777913: ('0.0630446525813429',), 1342777851: ('0.0630446525813429',), 1342777784: ('0.0630446525813429',), 1342777734: ()} output_args : {1342778300: ('0.0630446525813429',), 1342778279: ('0.0630446525813429',), 1342778260: ('0.0630446525813429',), 1342778241: ('0.0630446525813429',), 1342777913: ('0.0630446525813429',), 1342777851: ('0.0630446525813429',), 1342777784: ('0.0630446525813429',), 1342777734: ('0.0630446525813429',), 1342777664: ('0.0630446525813429',), 1342777222: ('0.0630446525813429',), 1342777178: ('0.0630446525813429',), 1342777078: ('0.0630446525813429',), 1342776945: ('0.0630446525813429',), 1342776814: ('0.0630446525813429',), 1342776779: ('0.0630446525813429',)} args : 1342777734 depend.output_id : 0 input_args_next_step : {1342778300: ('0.0630446525813429',), 1342778279: ('0.0630446525813429',), 1342778260: ('0.0630446525813429',), 1342778241: ('0.0630446525813429',), 1342777913: ('0.0630446525813429',), 1342777851: ('0.0630446525813429',), 1342777784: ('0.0630446525813429',), 1342777734: ('0.0630446525813429',), 1342777664: ()} output_args : {1342778300: ('0.0630446525813429',), 1342778279: ('0.0630446525813429',), 1342778260: ('0.0630446525813429',), 1342778241: ('0.0630446525813429',), 1342777913: ('0.0630446525813429',), 1342777851: ('0.0630446525813429',), 1342777784: ('0.0630446525813429',), 1342777734: ('0.0630446525813429',), 1342777664: ('0.0630446525813429',), 1342777222: ('0.0630446525813429',), 1342777178: ('0.0630446525813429',), 1342777078: ('0.0630446525813429',), 1342776945: ('0.0630446525813429',), 1342776814: ('0.0630446525813429',), 1342776779: ('0.0630446525813429',)} args : 1342777664 depend.output_id : 0 input_args_next_step : {1342778300: ('0.0630446525813429',), 1342778279: ('0.0630446525813429',), 1342778260: ('0.0630446525813429',), 1342778241: ('0.0630446525813429',), 1342777913: ('0.0630446525813429',), 1342777851: ('0.0630446525813429',), 1342777784: ('0.0630446525813429',), 1342777734: ('0.0630446525813429',), 1342777664: ('0.0630446525813429',), 1342777222: ()} output_args : {1342778300: ('0.0630446525813429',), 1342778279: ('0.0630446525813429',), 1342778260: ('0.0630446525813429',), 1342778241: ('0.0630446525813429',), 1342777913: ('0.0630446525813429',), 1342777851: ('0.0630446525813429',), 1342777784: ('0.0630446525813429',), 1342777734: ('0.0630446525813429',), 1342777664: ('0.0630446525813429',), 1342777222: ('0.0630446525813429',), 1342777178: ('0.0630446525813429',), 1342777078: ('0.0630446525813429',), 1342776945: ('0.0630446525813429',), 1342776814: ('0.0630446525813429',), 1342776779: ('0.0630446525813429',)} args : 1342777222 depend.output_id : 0 input_args_next_step : {1342778300: ('0.0630446525813429',), 1342778279: ('0.0630446525813429',), 1342778260: ('0.0630446525813429',), 1342778241: ('0.0630446525813429',), 1342777913: ('0.0630446525813429',), 1342777851: ('0.0630446525813429',), 1342777784: ('0.0630446525813429',), 1342777734: ('0.0630446525813429',), 1342777664: ('0.0630446525813429',), 1342777222: ('0.0630446525813429',), 1342777178: ()} output_args : {1342778300: ('0.0630446525813429',), 1342778279: ('0.0630446525813429',), 1342778260: ('0.0630446525813429',), 1342778241: ('0.0630446525813429',), 1342777913: ('0.0630446525813429',), 1342777851: ('0.0630446525813429',), 1342777784: ('0.0630446525813429',), 1342777734: ('0.0630446525813429',), 1342777664: ('0.0630446525813429',), 1342777222: ('0.0630446525813429',), 1342777178: ('0.0630446525813429',), 1342777078: ('0.0630446525813429',), 1342776945: ('0.0630446525813429',), 1342776814: ('0.0630446525813429',), 1342776779: ('0.0630446525813429',)} args : 1342777178 depend.output_id : 0 input_args_next_step : {1342778300: ('0.0630446525813429',), 1342778279: ('0.0630446525813429',), 1342778260: ('0.0630446525813429',), 1342778241: ('0.0630446525813429',), 1342777913: ('0.0630446525813429',), 1342777851: ('0.0630446525813429',), 1342777784: ('0.0630446525813429',), 1342777734: ('0.0630446525813429',), 1342777664: ('0.0630446525813429',), 1342777222: ('0.0630446525813429',), 1342777178: ('0.0630446525813429',), 1342777078: ()} output_args : {1342778300: ('0.0630446525813429',), 1342778279: ('0.0630446525813429',), 1342778260: ('0.0630446525813429',), 1342778241: ('0.0630446525813429',), 1342777913: ('0.0630446525813429',), 1342777851: ('0.0630446525813429',), 1342777784: ('0.0630446525813429',), 1342777734: ('0.0630446525813429',), 1342777664: ('0.0630446525813429',), 1342777222: ('0.0630446525813429',), 1342777178: ('0.0630446525813429',), 1342777078: ('0.0630446525813429',), 1342776945: ('0.0630446525813429',), 1342776814: ('0.0630446525813429',), 1342776779: ('0.0630446525813429',)} args : 1342777078 depend.output_id : 0 input_args_next_step : {1342778300: ('0.0630446525813429',), 1342778279: ('0.0630446525813429',), 1342778260: ('0.0630446525813429',), 1342778241: ('0.0630446525813429',), 1342777913: ('0.0630446525813429',), 1342777851: ('0.0630446525813429',), 1342777784: ('0.0630446525813429',), 1342777734: ('0.0630446525813429',), 1342777664: ('0.0630446525813429',), 1342777222: ('0.0630446525813429',), 1342777178: ('0.0630446525813429',), 1342777078: ('0.0630446525813429',), 1342776945: ()} output_args : {1342778300: ('0.0630446525813429',), 1342778279: ('0.0630446525813429',), 1342778260: ('0.0630446525813429',), 1342778241: ('0.0630446525813429',), 1342777913: ('0.0630446525813429',), 1342777851: ('0.0630446525813429',), 1342777784: ('0.0630446525813429',), 1342777734: ('0.0630446525813429',), 1342777664: ('0.0630446525813429',), 1342777222: ('0.0630446525813429',), 1342777178: ('0.0630446525813429',), 1342777078: ('0.0630446525813429',), 1342776945: ('0.0630446525813429',), 1342776814: ('0.0630446525813429',), 1342776779: ('0.0630446525813429',)} args : 1342776945 depend.output_id : 0 input_args_next_step : {1342778300: ('0.0630446525813429',), 1342778279: ('0.0630446525813429',), 1342778260: ('0.0630446525813429',), 1342778241: ('0.0630446525813429',), 1342777913: ('0.0630446525813429',), 1342777851: ('0.0630446525813429',), 1342777784: ('0.0630446525813429',), 1342777734: ('0.0630446525813429',), 1342777664: ('0.0630446525813429',), 1342777222: ('0.0630446525813429',), 1342777178: ('0.0630446525813429',), 1342777078: ('0.0630446525813429',), 1342776945: ('0.0630446525813429',), 1342776814: ()} output_args : {1342778300: ('0.0630446525813429',), 1342778279: ('0.0630446525813429',), 1342778260: ('0.0630446525813429',), 1342778241: ('0.0630446525813429',), 1342777913: ('0.0630446525813429',), 1342777851: ('0.0630446525813429',), 1342777784: ('0.0630446525813429',), 1342777734: ('0.0630446525813429',), 1342777664: ('0.0630446525813429',), 1342777222: ('0.0630446525813429',), 1342777178: ('0.0630446525813429',), 1342777078: ('0.0630446525813429',), 1342776945: ('0.0630446525813429',), 1342776814: ('0.0630446525813429',), 1342776779: ('0.0630446525813429',)} args : 1342776814 depend.output_id : 0 input_args_next_step : {1342778300: ('0.0630446525813429',), 1342778279: ('0.0630446525813429',), 1342778260: ('0.0630446525813429',), 1342778241: ('0.0630446525813429',), 1342777913: ('0.0630446525813429',), 1342777851: ('0.0630446525813429',), 1342777784: ('0.0630446525813429',), 1342777734: ('0.0630446525813429',), 1342777664: ('0.0630446525813429',), 1342777222: ('0.0630446525813429',), 1342777178: ('0.0630446525813429',), 1342777078: ('0.0630446525813429',), 1342776945: ('0.0630446525813429',), 1342776814: ('0.0630446525813429',), 1342776779: ()} output_args : {1342778300: ('0.0630446525813429',), 1342778279: ('0.0630446525813429',), 1342778260: ('0.0630446525813429',), 1342778241: ('0.0630446525813429',), 1342777913: ('0.0630446525813429',), 1342777851: ('0.0630446525813429',), 1342777784: ('0.0630446525813429',), 1342777734: ('0.0630446525813429',), 1342777664: ('0.0630446525813429',), 1342777222: ('0.0630446525813429',), 1342777178: ('0.0630446525813429',), 1342777078: ('0.0630446525813429',), 1342776945: ('0.0630446525813429',), 1342776814: ('0.0630446525813429',), 1342776779: ('0.0630446525813429',)} args : 1342776779 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 : {21251739: [{'papier': 21251743, 'plastique': 21251744, 'cartonnette': 21251745, 'flou': 21251746, 'kraft': 21251747, 'Carton_brun': 21251748, 'autre_refus': 21251749, 'Carton_gris': 21251750, 'mal_croppe': 21251751, 'environnement': 21251752, 'Teint_Dans_La_Masse': 21251753, 'metal': 21251754}]} input_args_next_step : {1342778300: ('0.0630446525813429',), 1342778279: ('0.0630446525813429',), 1342778260: ('0.0630446525813429',), 1342778241: ('0.0630446525813429',), 1342777913: ('0.0630446525813429',), 1342777851: ('0.0630446525813429',), 1342777784: ('0.0630446525813429',), 1342777734: ('0.0630446525813429',), 1342777664: ('0.0630446525813429',), 1342777222: ('0.0630446525813429',), 1342777178: ('0.0630446525813429',), 1342777078: ('0.0630446525813429',), 1342776945: ('0.0630446525813429',), 1342776814: ('0.0630446525813429',), 1342776779: ('0.0630446525813429',), 21251739: ()} output_args : {21251739: [{'papier': 21251743, 'plastique': 21251744, 'cartonnette': 21251745, 'flou': 21251746, 'kraft': 21251747, 'Carton_brun': 21251748, 'autre_refus': 21251749, 'Carton_gris': 21251750, 'mal_croppe': 21251751, 'environnement': 21251752, 'Teint_Dans_La_Masse': 21251753, 'metal': 21251754}]} args : 21251739 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 :16, first value : ('0.0630446525813429',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21251739) 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 (1342778300,1342778279,1342778260,1342778241,1342777913,1342777851,1342777784,1342777734,1342777664,1342777222,1342777178,1342777078,1342776945,1342776814,1342776779) Found this number of photos: 15 ##### Call download_photos : nb_thread : 5 begin to download photo : 1342776779 begin to download photo : 1342777178 begin to download photo : 1342777784 begin to download photo : 1342778260 download finish for photo 1342778260 begin to download photo : 1342778279 download finish for photo 1342776779 begin to download photo : 1342776814 download finish for photo 1342777784 begin to download photo : 1342777851 download finish for photo 1342777178 begin to download photo : 1342777222 download finish for photo 1342776814 begin to download photo : 1342776945 download finish for photo 1342778279 begin to download photo : 1342778300 download finish for photo 1342777851 begin to download photo : 1342777913 download finish for photo 1342777222 begin to download photo : 1342777664 download finish for photo 1342776945 begin to download photo : 1342777078 download finish for photo 1342778300 download finish for photo 1342777913 begin to download photo : 1342778241 download finish for photo 1342777664 begin to download photo : 1342777734 download finish for photo 1342777078 download finish for photo 1342778241 download finish for photo 1342777734 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 15 ; length of list_pids : 15 ; length of list_args : 15 results_Auto_P21251739_11-03-2025_02_39_59.pdf 21251744 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=21251744 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342775955: '1741656867_727334_1342774815_ad46e732e889e2297e7d922722a63714_rle_crop_3704030838_0.png', 1342775962: '1741656867_727334_1342774791_30da14e4dccb42b3af3ae812cb1f626e_rle_crop_3704030883_0.png', 1342775969: '1741656867_727334_1342774755_f2e218ea098d71f5af0e2e800f52ea61_rle_crop_3704030895_0.png', 1342775978: '1741656867_727334_1342774755_f2e218ea098d71f5af0e2e800f52ea61_rle_crop_3704030894_0.png', 1342775987: '1741656867_727334_1342774730_c30cff1b403d127feba9af636ba0b275_rle_crop_3704030903_0.png', 1342778364: '1741657048_184738_1342775481_0eaa65a3fb63dd183bae8966bd45250f_rle_crop_3704032782_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/8993b1fc395d7ef868f7cc5791aa13a6_20527014.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/3ab053c321b3a027c34a7defb90a0a2a_64820981.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/0ec78c17291df9bb7672cd2d0c7be926_43194226.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/696166fa53119a9e204a8b2c050fed25_64296921.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/ab75fef966802a5b5e382b209d2e348d_95219049.png change filename to text .imagette212517441741657199/ imagette212517441741657199/1741656867_727334_1342774730_c30cff1b403d127feba9af636ba0b275_rle_crop_3704030903_0.png.png imagette212517441741657199/1741656867_727334_1342774755_f2e218ea098d71f5af0e2e800f52ea61_rle_crop_3704030894_0.png.png imagette212517441741657199/1741656867_727334_1342774815_ad46e732e889e2297e7d922722a63714_rle_crop_3704030838_0.png.png imagette212517441741657199/1741656867_727334_1342774755_f2e218ea098d71f5af0e2e800f52ea61_rle_crop_3704030895_0.png.png imagette212517441741657199/1741657048_184738_1342775481_0eaa65a3fb63dd183bae8966bd45250f_rle_crop_3704032782_0.png.png imagette212517441741657199/1741656867_727334_1342774791_30da14e4dccb42b3af3ae812cb1f626e_rle_crop_3704030883_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/79674d67705532593c4f6e4c3c6a52f7_76531303.png imagette212517441741657199 21251745 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=21251745 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342775854: '1741656867_727334_1342774755_f2e218ea098d71f5af0e2e800f52ea61_rle_crop_3704030889_0.png', 1342775863: '1741656867_727334_1342774730_c30cff1b403d127feba9af636ba0b275_rle_crop_3704030906_0.png', 1342778078: '1741657033_357913_1342776048_77e9c9971f5d10fb82f5aceecac18c8f_rle_crop_3704034651_0.png', 1342778343: '1741657048_184738_1342776365_c06063afe14b5723e6eb6e4738cede5c_rle_crop_3704034584_0.png', 1342778346: '1741657048_184738_1342775481_0eaa65a3fb63dd183bae8966bd45250f_rle_crop_3704032781_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/0105a335f86c8d3befaf15cb6f3eb695_9522413.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/bbc1f7811c127dbbeddd1ab79c7bdb94_80827558.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/6ccd146921391925e6a0fb8f67719710_51615474.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/bd12a91266a1e7a11ca5ba07d8fbd487_62430872.png change filename to text .imagette212517451741657199/ imagette212517451741657199/1741656867_727334_1342774755_f2e218ea098d71f5af0e2e800f52ea61_rle_crop_3704030889_0.png.png imagette212517451741657199/1741657048_184738_1342776365_c06063afe14b5723e6eb6e4738cede5c_rle_crop_3704034584_0.png.png imagette212517451741657199/1741657033_357913_1342776048_77e9c9971f5d10fb82f5aceecac18c8f_rle_crop_3704034651_0.png.png imagette212517451741657199/1741656867_727334_1342774730_c30cff1b403d127feba9af636ba0b275_rle_crop_3704030906_0.png.png imagette212517451741657199/1741657048_184738_1342775481_0eaa65a3fb63dd183bae8966bd45250f_rle_crop_3704032781_0.png.png imagette212517461741657199/ imagette212517471741657199/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/0cd203a5ab23a515cde3f94d54596134_85343780.png imagette212517451741657199 21251746 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=21251746 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212517461741657199 21251747 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=21251747 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212517471741657199 21251749 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=21251749 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342778114: '1741657047_730816_1342775484_bb7e319e18769ed79f6ab324ebe1c42c_rle_crop_3704032675_0.png', 1342778311: '1741657048_184738_1342775463_924263993218e968bb2823b5fac7aa08_rle_crop_3704033936_0.png', 1342778309: '1741657048_184738_1342775468_4bfc12f43da582b61be5c0e11971b477_rle_crop_3704033906_0.png', 1342778305: '1741657048_184738_1342775472_3f6cf0719839825d626758319d1c3993_rle_crop_3704033132_0.png', 1342778302: '1741657048_184738_1342775477_ea6f33de4ee4850a66e350e96eb889e3_rle_crop_3704032808_0.png', 1342778298: '1741657048_184738_1342775477_ea6f33de4ee4850a66e350e96eb889e3_rle_crop_3704032796_0.png', 1342778296: '1741657048_184738_1342775481_0eaa65a3fb63dd183bae8966bd45250f_rle_crop_3704032791_0.png', 1342778294: '1741657048_184738_1342776365_c06063afe14b5723e6eb6e4738cede5c_rle_crop_3704034590_0.png', 1342778118: '1741657047_730816_1342775347_59da1124b978e64eae1a9732845c365b_rle_crop_3704032714_0.png', 1342775693: '1741656867_727334_1342775153_b0e313b3a8a6ab8d6724fdf34c5b047c_rle_crop_3704030789_0.png', 1342778071: '1741657033_357913_1342776116_dc8a3bcca05ac4c5a5168bc9ff7d4aaf_rle_crop_3704034605_0.png', 1342778070: '1741657033_357913_1342776116_dc8a3bcca05ac4c5a5168bc9ff7d4aaf_rle_crop_3704034598_0.png', 1342778069: '1741657033_357913_1342776116_dc8a3bcca05ac4c5a5168bc9ff7d4aaf_rle_crop_3704034602_0.png', 1342778068: '1741657033_357913_1342776268_b2975a331d1d9ed9320dde5ad46c6341_rle_crop_3704034527_0.png', 1342775722: '1741656867_727334_1342774730_c30cff1b403d127feba9af636ba0b275_rle_crop_3704030909_0.png', 1342775712: '1741656867_727334_1342774755_f2e218ea098d71f5af0e2e800f52ea61_rle_crop_3704030897_0.png', 1342775705: '1741656867_727334_1342774755_f2e218ea098d71f5af0e2e800f52ea61_rle_crop_3704030891_0.png', 1342775701: '1741656867_727334_1342774791_30da14e4dccb42b3af3ae812cb1f626e_rle_crop_3704030880_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/3fb90ea62c304d5038d1c078da668325_45755839.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/c3396981fa785a68d63fc8894f15fd7b_80448428.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/6cd6db8b70f16ee369b49a1b87204ff1_94224729.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/6dfe08b6642671acc17935f811670e6c_93775886.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/8511f283066fa2e8112add4daf5ca5dc_80513847.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/d9a65c0fda8485ee2bd2e2034b810e50_31902733.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/68081899eb7bab775439fc2df6e9bf43_23512106.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/b8271f7c1876fe6a800be9f327b808b6_14818180.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/ce5dc0b3f2d221b1251bb2e22006ff0a_70496755.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/b18923eb66800b77fb9a0dcce692bdc5_58658669.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/a76b6264d1d59c49536dc250f1bf3d73_40614548.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/88d6b174a62429882955e8e3ec988489_68245245.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/07ce0f85d1fd3006ee72175c13fbb9ad_86193782.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/d5af60d780b9d05fed82e362efd07268_61482154.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/0b364e558f4f96ab216c50888cf7bcc6_46865844.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/ed605ebdd26ad5ec1e683ff20c75fb41_47094443.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/d9ce5424d30b41007b5293ac56b32d93_45168139.png change filename to text .imagette212517491741657199/ imagette212517491741657199/1741657048_184738_1342775481_0eaa65a3fb63dd183bae8966bd45250f_rle_crop_3704032791_0.png.png imagette212517491741657199/1741656867_727334_1342774791_30da14e4dccb42b3af3ae812cb1f626e_rle_crop_3704030880_0.png.png imagette212517491741657199/1741657048_184738_1342775468_4bfc12f43da582b61be5c0e11971b477_rle_crop_3704033906_0.png.png imagette212517491741657199/1741657048_184738_1342776365_c06063afe14b5723e6eb6e4738cede5c_rle_crop_3704034590_0.png.png imagette212517491741657199/1741657033_357913_1342776116_dc8a3bcca05ac4c5a5168bc9ff7d4aaf_rle_crop_3704034605_0.png.png imagette212517491741657199/1741657048_184738_1342775477_ea6f33de4ee4850a66e350e96eb889e3_rle_crop_3704032808_0.png.png imagette212517491741657199/1741657033_357913_1342776116_dc8a3bcca05ac4c5a5168bc9ff7d4aaf_rle_crop_3704034602_0.png.png imagette212517491741657199/1741657048_184738_1342775463_924263993218e968bb2823b5fac7aa08_rle_crop_3704033936_0.png.png imagette212517491741657199/1741656867_727334_1342774730_c30cff1b403d127feba9af636ba0b275_rle_crop_3704030909_0.png.png imagette212517491741657199/1741657033_357913_1342776116_dc8a3bcca05ac4c5a5168bc9ff7d4aaf_rle_crop_3704034598_0.png.png imagette212517491741657199/1741656867_727334_1342774755_f2e218ea098d71f5af0e2e800f52ea61_rle_crop_3704030891_0.png.png imagette212517491741657199/1741657047_730816_1342775484_bb7e319e18769ed79f6ab324ebe1c42c_rle_crop_3704032675_0.png.png imagette212517491741657199/1741656867_727334_1342775153_b0e313b3a8a6ab8d6724fdf34c5b047c_rle_crop_3704030789_0.png.png imagette212517491741657199/1741656867_727334_1342774755_f2e218ea098d71f5af0e2e800f52ea61_rle_crop_3704030897_0.png.png imagette212517491741657199/1741657047_730816_1342775347_59da1124b978e64eae1a9732845c365b_rle_crop_3704032714_0.png.png imagette212517491741657199/1741657048_184738_1342775477_ea6f33de4ee4850a66e350e96eb889e3_rle_crop_3704032796_0.png.png imagette212517491741657199/1741657048_184738_1342775472_3f6cf0719839825d626758319d1c3993_rle_crop_3704033132_0.png.png imagette212517491741657199/1741657033_357913_1342776268_b2975a331d1d9ed9320dde5ad46c6341_rle_crop_3704034527_0.png.png imagette212517511741657200/ imagette212517541741657200/ wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/a9d87a4aeda16f106978d1048d6dba41_12626304.png imagette212517491741657199 21251751 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=21251751 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212517511741657200 21251754 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=21251754 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212517541741657200 21251748 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=21251748 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342775915: '1741656867_727334_1342775153_b0e313b3a8a6ab8d6724fdf34c5b047c_rle_crop_3704030790_0.png', 1342775923: '1741656867_727334_1342774791_30da14e4dccb42b3af3ae812cb1f626e_rle_crop_3704030877_0.png', 1342778354: '1741657048_184738_1342775477_ea6f33de4ee4850a66e350e96eb889e3_rle_crop_3704032799_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/6cb673c2b238697b989890b7d5fb9e2b_81093171.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/f959771371930a0bb182c3cb6ff39614_94603617.png change filename to text .imagette212517481741657200/ imagette212517481741657200/1741657048_184738_1342775477_ea6f33de4ee4850a66e350e96eb889e3_rle_crop_3704032799_0.png.png imagette212517481741657200/1741656867_727334_1342775153_b0e313b3a8a6ab8d6724fdf34c5b047c_rle_crop_3704030790_0.png.png imagette212517481741657200/1741656867_727334_1342774791_30da14e4dccb42b3af3ae812cb1f626e_rle_crop_3704030877_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/2a9c2f9be5adb304007458217e5899b4_99606138.png imagette212517481741657200 21251750 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=21251750 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342775774: '1741656867_727334_1342775153_b0e313b3a8a6ab8d6724fdf34c5b047c_rle_crop_3704030786_0.png', 1342775780: '1741656867_727334_1342775153_b0e313b3a8a6ab8d6724fdf34c5b047c_rle_crop_3704030785_0.png', 1342775788: '1741656867_727334_1342774791_30da14e4dccb42b3af3ae812cb1f626e_rle_crop_3704030875_0.png', 1342775796: '1741656867_727334_1342774755_f2e218ea098d71f5af0e2e800f52ea61_rle_crop_3704030890_0.png', 1342778134: '1741657047_730816_1342775484_bb7e319e18769ed79f6ab324ebe1c42c_rle_crop_3704032678_0.png', 1342778336: '1741657048_184738_1342775481_0eaa65a3fb63dd183bae8966bd45250f_rle_crop_3704032786_0.png', 1342778338: '1741657048_184738_1342775468_4bfc12f43da582b61be5c0e11971b477_rle_crop_3704033903_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/996183d3a1d8e769e0b6b405807e7f46_27234227.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/753d1b641e2d0d30e481bb0c3782810a_87987736.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/7dbc532e443e30214cbd817bb58c9f78_27546061.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/73075db839c991ae06b0a2f237d90d1f_46268741.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/c8fb68a621022a3d9e9f580ea35a2f8e_7495939.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/b136ed814f2a0cb860a60604a360b929_64393103.png change filename to text .imagette212517501741657200/ imagette212517501741657200/1741657048_184738_1342775481_0eaa65a3fb63dd183bae8966bd45250f_rle_crop_3704032786_0.png.png imagette212517501741657200/1741657047_730816_1342775484_bb7e319e18769ed79f6ab324ebe1c42c_rle_crop_3704032678_0.png.png imagette212517501741657200/1741656867_727334_1342774791_30da14e4dccb42b3af3ae812cb1f626e_rle_crop_3704030875_0.png.png imagette212517501741657200/1741656867_727334_1342775153_b0e313b3a8a6ab8d6724fdf34c5b047c_rle_crop_3704030785_0.png.png imagette212517501741657200/1741656867_727334_1342775153_b0e313b3a8a6ab8d6724fdf34c5b047c_rle_crop_3704030786_0.png.png imagette212517501741657200/1741657048_184738_1342775468_4bfc12f43da582b61be5c0e11971b477_rle_crop_3704033903_0.png.png imagette212517501741657200/1741656867_727334_1342774755_f2e218ea098d71f5af0e2e800f52ea61_rle_crop_3704030890_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/1c0c9d05a1f92fea00c3c1fcf270ef6a_88568070.png imagette212517501741657200 21251753 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=21251753 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342778277: '1741657048_184738_1342775463_924263993218e968bb2823b5fac7aa08_rle_crop_3704033930_0.png'} change filename to text .imagette212517531741657201/ imagette212517531741657201/1741657048_184738_1342775463_924263993218e968bb2823b5fac7aa08_rle_crop_3704033930_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/29f96be740580953c19abadca87a9251_23990220.png imagette212517531741657201 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21251739 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21251755,21251756,21251757,21251758,21251759,21251760,21251761,21251762,21251763,21251764,21251765,21251766?tags=papier,plastique,cartonnette,flou,kraft,Carton_brun,autre_refus,Carton_gris,mal_croppe,environnement,Teint_Dans_La_Masse,metal your option no_mail is active, we will not send the real mail to your client args[1342778300] : ('0.0630446525813429',) no score found for photo 1342778300 We are sending mail with results at report@fotonower.com args[1342778279] : ('0.0630446525813429',) no score found for photo 1342778279 We are sending mail with results at report@fotonower.com args[1342778260] : ('0.0630446525813429',) no score found for photo 1342778260 We are sending mail with results at report@fotonower.com args[1342778241] : ('0.0630446525813429',) no score found for photo 1342778241 We are sending mail with results at report@fotonower.com args[1342777913] : ('0.0630446525813429',) no score found for photo 1342777913 We are sending mail with results at report@fotonower.com args[1342777851] : ('0.0630446525813429',) no score found for photo 1342777851 We are sending mail with results at report@fotonower.com args[1342777784] : ('0.0630446525813429',) no score found for photo 1342777784 We are sending mail with results at report@fotonower.com args[1342777734] : ('0.0630446525813429',) no score found for photo 1342777734 We are sending mail with results at report@fotonower.com args[1342777664] : ('0.0630446525813429',) no score found for photo 1342777664 We are sending mail with results at report@fotonower.com args[1342777222] : ('0.0630446525813429',) no score found for photo 1342777222 We are sending mail with results at report@fotonower.com args[1342777178] : ('0.0630446525813429',) no score found for photo 1342777178 We are sending mail with results at report@fotonower.com args[1342777078] : ('0.0630446525813429',) no score found for photo 1342777078 We are sending mail with results at report@fotonower.com args[1342776945] : ('0.0630446525813429',) no score found for photo 1342776945 We are sending mail with results at report@fotonower.com args[1342776814] : ('0.0630446525813429',) no score found for photo 1342776814 We are sending mail with results at report@fotonower.com args[1342776779] : ('0.0630446525813429',) no score found for photo 1342776779 We are sending mail with results at report@fotonower.com refus_total : 0.0630446525813429 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=21251739 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 1000 start upload file to ovh https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21251739_11-03-2025_02_39_59.pdf results_Auto_P21251739_11-03-2025_02_39_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21251739_11-03-2025_02_39_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','21251739','results_Auto_P21251739_11-03-2025_02_39_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21251739_11-03-2025_02_39_59.pdf','pdf','','0.25','0.0630446525813429') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21251739]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1342778300, 1342778279, 1342778260, 1342778241, 1342777913, 1342777851, 1342777784, 1342777734, 1342777664, 1342777222, 1342777178, 1342777078, 1342776945, 1342776814, 1342776779] map_info['map_portfolio_photo'] : {21251739: [1342778300, 1342778279, 1342778260, 1342778241, 1342777913, 1342777851, 1342777784, 1342777734, 1342777664, 1342777222, 1342777178, 1342777078, 1342776945, 1342776814, 1342776779, 1342776365, 1342776268, 1342776116, 1342776048, 1342775484, 1342775481, 1342775477, 1342775472, 1342775468, 1342775463, 1342775373, 1342775347, 1342775314, 1342775153, 1342775132, 1342775111, 1342774815, 1342774791, 1342774755, 1342774730]} final : False mtd_id 4302 list_pids : [1342778300, 1342778279, 1342778260, 1342778241, 1342777913, 1342777851, 1342777784, 1342777734, 1342777664, 1342777222, 1342777178, 1342777078, 1342776945, 1342776814, 1342776779] 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, '2656356') ('4302', '21251739', '1342778300', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342778279', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342778260', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342778241', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342777913', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342777851', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342777784', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342777734', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342777664', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342777222', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342777178', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342777078', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342776945', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342776814', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342776779', None, None, None, None, None, '2656356') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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', '21251739', '1342778300', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342778279', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342778260', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342778241', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342777913', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342777851', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342777784', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342777734', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342777664', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342777222', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342777178', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342777078', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342776945', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342776814', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342776779', None, None, None, None, None, '2656356')] time used for this insertion : 0.01463627815246582 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.8799595832824707 time spend to save output : 0.014970779418945312 total time spend for step 4 : 3.894930362701416 step5:split_time_score Tue Mar 11 02:40: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 : ['21251739'] 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 : [('21251739',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21251739) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1342778260: {'path': 'temp/1741657198_2373154_1342778260_271311c59bf4216f83584a278808f9f4.jpg', 'extension': 'jpg'}, 1342778279: {'path': 'temp/1741657198_2373154_1342778279_6f9e7933db64ccd0d6eb6179976bb23c.jpg', 'extension': 'jpg'}, 1342778300: {'path': 'temp/1741657198_2373154_1342778300_e896b082a8dfdb90f668fe0de65b9c90.jpg', 'extension': 'jpg'}, 1342776779: {'path': 'temp/1741657198_2373154_1342776779_03a016e13024dbcb38fd682e09133de6.jpg', 'extension': 'jpg'}, 1342776814: {'path': 'temp/1741657198_2373154_1342776814_008f2b4242c2e637c9efccece306adb8.jpg', 'extension': 'jpg'}, 1342776945: {'path': 'temp/1741657198_2373154_1342776945_0b99fda50fb2664b0b06090103185c15.jpg', 'extension': 'jpg'}, 1342777078: {'path': 'temp/1741657198_2373154_1342777078_7089d10dc07ead38357723884d8a9f9c.jpg', 'extension': 'jpg'}, 1342777784: {'path': 'temp/1741657198_2373154_1342777784_4aed1a337c030a16e7f2f80a034b6222.jpg', 'extension': 'jpg'}, 1342777851: {'path': 'temp/1741657198_2373154_1342777851_0c4c271380a95be91915cddd39b1d78c.jpg', 'extension': 'jpg'}, 1342777913: {'path': 'temp/1741657198_2373154_1342777913_e5b5748599f987432afaddba3d72c314.jpg', 'extension': 'jpg'}, 1342778241: {'path': 'temp/1741657198_2373154_1342778241_b842bf2ffc068c3b3b33d7879cf585f2.jpg', 'extension': 'jpg'}, 1342777178: {'path': 'temp/1741657198_2373154_1342777178_f4a2d7ca1609191dd591436d02e57e71.jpg', 'extension': 'jpg'}, 1342777222: {'path': 'temp/1741657198_2373154_1342777222_73ffdf0b97bd7df1f1efa4747c27cb53.jpg', 'extension': 'jpg'}, 1342777664: {'path': 'temp/1741657198_2373154_1342777664_4ba0f01e294af35e6184064a05e002fb.jpg', 'extension': 'jpg'}, 1342777734: {'path': 'temp/1741657198_2373154_1342777734_213f735b6c6485bd9a45cf313d951da2.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 = 21251739; (('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 = 21251739 group by h (('02', 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=21251739 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 (21251739) 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 (21251739) 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 21251739 Nombre de photos uploadées : 35 / 23040 (0%) 11032025 21251739 Nombre de photos taguées (types de déchets): 0 / 35 (0%) 11032025 21251739 Nombre de photos taguées (volume) : 0 / 35 (0%) [{'photo_id': 1342774815, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/ad46e732e889e2297e7d922722a63714.jpg', 'username': None, 'uploaded_at': 1741656698, 'text': 'image_11032025_02_30_04_010138m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1342774791, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/30da14e4dccb42b3af3ae812cb1f626e.jpg', 'username': None, 'uploaded_at': 1741656698, 'text': 'image_11032025_02_30_14_010137m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1342774755, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/f2e218ea098d71f5af0e2e800f52ea61.jpg', 'username': None, 'uploaded_at': 1741656698, 'text': 'image_11032025_02_30_23_009125m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1342774730, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/c30cff1b403d127feba9af636ba0b275.jpg', 'username': None, 'uploaded_at': 1741656698, 'text': 'image_11032025_02_30_33_010135m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.86102294921875e-06 elapsed_time : order_list_meta_photo_and_scores 9.775161743164062e-06 ??????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002061605453491211 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21251739, '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.030795812606811523 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': 1664551, 'mtr_portfolio_id': 21249839, 'dashboard_result_id': 9328488, '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_P21249839_11-03-2025_01_57_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21249853, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21249854, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21249855, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21249856, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21249857, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21249858, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21249859, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21249860, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21249861, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21249862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21249863, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21249864, 'pht': 3726}}"}, {'dashboat_entry_day': 1656727, 'dashboard_run_id': 1664551, 'mtr_portfolio_id': 21250319, 'dashboard_result_id': 9328489, '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_P21250319_11-03-2025_02_20_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21250338, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21250339, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21250340, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21250341, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21250342, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21250343, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21250344, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21250345, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21250346, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21250347, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21250348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21250349, 'pht': 3726}}"}, {'dashboat_entry_day': 1656727, 'dashboard_run_id': 1664551, 'mtr_portfolio_id': 21250930, 'dashboard_result_id': 9328490, '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_P21250930_11-03-2025_02_33_39.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21250949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21250950, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21250951, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21250952, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21250953, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21250954, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21250955, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21250956, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21250957, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21250958, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21250959, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21250960, 'pht': 3726}}"}, {'dashboat_entry_day': 1656727, 'dashboard_run_id': 1664551, 'mtr_portfolio_id': 21251739, 'dashboard_result_id': 9328491, '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_P21251739_11-03-2025_02_37_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21251743, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21251744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21251745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21251746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21251747, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21251748, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21251749, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21251750, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21251751, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21251752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21251753, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21251754, '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 = 21249839 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': 2656255, 'mtr_portfolio_id': 21249839, 'created_at': datetime.datetime(2025, 3, 11, 1, 56, 59), 'result': '0.07871469110083705', 'result_long': None, 'result_double': None}] Qualite : 0.07871469110083705 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21249839 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21249839_11-03-2025_01_57_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21249839 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_P21249839_11-03-2025_01_57_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21249853, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21249854, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21249855, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21249856, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21249857, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21249858, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21249859, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21249860, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21249861, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21249862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21249863, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21249864, 'pht': 3726}}" where mtr_portfolio_id = 21249839 and dashboard_run_id = 1664551 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`=21249839 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9328488, 0.07871469110083705, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21249839_11-03-2025_01_57_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21249853, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21249854, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21249855, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21249856, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21249857, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21249858, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21249859, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21249860, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21249861, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21249862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21249863, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21249864, '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 = 21250319 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': 2656280, 'mtr_portfolio_id': 21250319, 'created_at': datetime.datetime(2025, 3, 11, 2, 19, 59), 'result': '0.06455545040092278', 'result_long': None, 'result_double': None}] Qualite : 0.06455545040092278 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21250319 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21250319_11-03-2025_02_20_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21250319 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_P21250319_11-03-2025_02_20_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21250338, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21250339, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21250340, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21250341, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21250342, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21250343, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21250344, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21250345, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21250346, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21250347, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21250348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21250349, 'pht': 3726}}" where mtr_portfolio_id = 21250319 and dashboard_run_id = 1664551 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`=21250319 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9328489, 0.06455545040092278, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21250319_11-03-2025_02_20_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21250338, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21250339, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21250340, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21250341, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21250342, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21250343, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21250344, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21250345, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21250346, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21250347, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21250348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21250349, '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 = 21250930 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': 2656319, 'mtr_portfolio_id': 21250930, 'created_at': datetime.datetime(2025, 3, 11, 2, 33, 38), 'result': '0.07619899619228289', 'result_long': None, 'result_double': None}] Qualite : 0.07619899619228289 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21250930 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21250930_11-03-2025_02_33_39.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21250930 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_P21250930_11-03-2025_02_33_39.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21250949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21250950, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21250951, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21250952, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21250953, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21250954, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21250955, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21250956, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21250957, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21250958, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21250959, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21250960, 'pht': 3726}}" where mtr_portfolio_id = 21250930 and dashboard_run_id = 1664551 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`=21250930 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9328490, 0.07619899619228289, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21250930_11-03-2025_02_33_39.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21250949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21250950, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21250951, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21250952, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21250953, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21250954, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21250955, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21250956, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21250957, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21250958, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21250959, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21250960, '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 = 21251739 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': 2656356, 'mtr_portfolio_id': 21251739, 'created_at': datetime.datetime(2025, 3, 11, 2, 39, 58), 'result': '0.0630446525813429', 'result_long': None, 'result_double': None}] Qualite : 0.0630446525813429 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21251739 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21251739_11-03-2025_02_39_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21251739 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_P21251739_11-03-2025_02_39_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21251743, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21251744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21251745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21251746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21251747, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21251748, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21251749, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21251750, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21251751, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21251752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21251753, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21251754, 'pht': 3726}}" where mtr_portfolio_id = 21251739 and dashboard_run_id = 1664551 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`=21251739 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9328491, 0.0630446525813429, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21251739_11-03-2025_02_39_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21251743, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21251744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21251745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21251746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21251747, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21251748, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21251749, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21251750, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21251751, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21251752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21251753, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21251754, '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 (21249839,21250319,21250930,21251739) result : ((1342756812,), (1342758777,), (1342758875,), (1342759286,), (1342759591,), (1342759605,), (1342759626,), (1342759843,), (1342759848,), (1342759872,), (1342759875,), (1342759877,), (1342759947,), (1342759964,), (1342759990,), (1342760021,), (1342760618,), (1342760708,), (1342760787,), (1342760831,), (1342760855,), (1342761104,), (1342761126,), (1342761145,), (1342761161,), (1342761166,), (1342761557,), (1342761585,), (1342761595,), (1342761611,), (1342761631,), (1342761651,), (1342761826,), (1342761812,), (1342761814,), (1342761822,), (1342761824,), (1342762146,), (1342762203,), (1342762213,), (1342762248,), (1342762323,), (1342762347,), (1342762357,), (1342762367,), (1342762389,), (1342762463,), (1342762510,), (1342762551,), (1342762617,), (1342762677,), (1342762952,), (1342762956,), (1342762959,), (1342762977,), (1342762983,), (1342763007,), (1342763013,), (1342763019,), (1342763022,), (1342763026,), (1342763028,), (1342763071,), (1342763099,), (1342763131,), (1342763154,), (1342763747,), (1342763818,), (1342763831,), (1342763853,), (1342764042,), (1342764082,), (1342764108,), (1342764131,), (1342764155,), (1342764214,), (1342764246,), (1342764318,), (1342764378,), (1342764415,), (1342764566,), (1342764567,), (1342764570,), (1342764589,), (1342764605,), (1342764611,), (1342764618,), (1342764622,), (1342764624,), (1342764808,), (1342764828,), (1342764882,), (1342764899,), (1342764938,), (1342765446,), (1342765515,), (1342765561,), (1342766190,), (1342766262,), (1342766959,), (1342766769,), (1342766827,), (1342766868,), (1342767433,), (1342767451,), (1342767551,), (1342767566,), (1342767587,), (1342767873,), (1342767950,), (1342770878,), (1342770909,), (1342770948,), (1342771002,), (1342771433,), (1342771471,), (1342771715,), (1342771748,), (1342771785,), (1342771821,), (1342771853,), (1342771857,), (1342771918,), (1342771987,), (1342772352,), (1342772359,), (1342772362,), (1342772365,), (1342772368,), (1342772424,), (1342772442,), (1342772544,), (1342772560,), (1342772577,), (1342772627,), (1342772698,), (1342772735,), (1342773042,), (1342773117,), (1342773184,), (1342773263,), (1342773366,), (1342773584,), (1342773587,), (1342773603,), (1342773625,), (1342774238,), (1342774337,), (1342774384,), (1342774444,), (1342774506,), (1342774518,), (1342774846,), (1342774730,), (1342774755,), (1342774791,), (1342774815,), (1342775111,), (1342775132,), (1342775153,), (1342775314,), (1342775347,), (1342775373,), (1342775463,), (1342775468,), (1342775472,), (1342775477,), (1342775481,), (1342775484,), (1342776048,), (1342776116,), (1342776268,), (1342776365,), (1342776779,), (1342776814,), (1342776945,), (1342777078,), (1342777178,), (1342777222,), (1342777664,), (1342777734,), (1342777784,), (1342777851,), (1342777913,), (1342778241,), (1342778260,), (1342778279,), (1342778300,)) 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([21251739]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1342778300, 1342778279, 1342778260, 1342778241, 1342777913, 1342777851, 1342777784, 1342777734, 1342777664, 1342777222, 1342777178, 1342777078, 1342776945, 1342776814, 1342776779] map_info['map_portfolio_photo'] : {21251739: [1342778300, 1342778279, 1342778260, 1342778241, 1342777913, 1342777851, 1342777784, 1342777734, 1342777664, 1342777222, 1342777178, 1342777078, 1342776945, 1342776814, 1342776779, 1342776365, 1342776268, 1342776116, 1342776048, 1342775484, 1342775481, 1342775477, 1342775472, 1342775468, 1342775463, 1342775373, 1342775347, 1342775314, 1342775153, 1342775132, 1342775111, 1342774815, 1342774791, 1342774755, 1342774730]} final : True mtd_id 4302 list_pids : [1342778300, 1342778279, 1342778260, 1342778241, 1342777913, 1342777851, 1342777784, 1342777734, 1342777664, 1342777222, 1342777178, 1342777078, 1342776945, 1342776814, 1342776779] Looping around the photos to save general results len do output : 1 /21251739Didn'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, '2656356') ('4302', '21251739', '1342778300', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342778279', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342778260', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342778241', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342777913', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342777851', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342777784', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342777734', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342777664', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342777222', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342777178', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342777078', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342776945', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342776814', None, None, None, None, None, '2656356') ('4302', None, None, None, None, None, None, None, '2656356') ('4302', '21251739', '1342776779', None, None, None, None, None, '2656356') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21251739', 'None', None, None, None, None, '2656356'), ('4302', '21251739', '1342778300', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342778279', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342778260', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342778241', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342777913', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342777851', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342777784', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342777734', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342777664', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342777222', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342777178', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342777078', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342776945', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342776814', None, None, None, None, None, '2656356'), ('4302', '21251739', '1342776779', None, None, None, None, None, '2656356')] time used for this insertion : 0.017022371292114258 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4287254810333252 time spend to save output : 0.01726818084716797 total time spend for step 5 : 0.44599366188049316 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 (2656356) 2.59user 2.65system 0:08.14elapsed 64%CPU (0avgtext+0avgdata 160120maxresident)k 77880inputs+15312outputs (395major+76425minor)pagefaults 0swaps