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 : 1926556 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 (2762998) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2762998) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22438094 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2762998'] with mtr_portfolio_ids : ['22438094'] and first list_photo_ids : [] new path : /proc/1926556/ Name: python3 Umask: 0002 State: R (running) Tgid: 1926556 Ngid: 0 Pid: 1926556 PPid: 1926555 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1926556 NSpid: 1926556 NSpgid: 1923722 NSsid: 1923722 VmPeak: 1106936 kB VmSize: 1106936 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97508 kB VmRSS: 97508 kB RssAnon: 59804 kB RssFile: 37704 kB RssShmem: 0 kB VmData: 865684 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 612 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 46 nonvoluntary_ctxt_switches: 100 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1926556', 'Ngid': '0', 'Pid': '1926556', 'PPid': '1926555', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1926556', 'NSpid': '1926556', 'NSpgid': '1923722', 'NSsid': '1923722', 'VmPeak': '1106936 kB', 'VmSize': '1106936 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97508 kB', 'VmRSS': '97508 kB', 'RssAnon': '59804 kB', 'RssFile': '37704 kB', 'RssShmem': '0 kB', 'VmData': '865684 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '612 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '46', 'nonvoluntary_ctxt_switches': '100'} ('datou_batch_current', '1926556', '1106936', '0', '1106936', '865684', '97508', b'', 'marlene', '2762998') 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 (22438094) 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 (2762998 ) ) 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 (22438094) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1353778375, 'portfolio_id': 22438094}, {'photo_id': 1353778367, 'portfolio_id': 22438094}, {'photo_id': 1353778365, 'portfolio_id': 22438094}, {'photo_id': 1353778360, 'portfolio_id': 22438094}, {'photo_id': 1353778328, 'portfolio_id': 22438094}, {'photo_id': 1353778325, 'portfolio_id': 22438094}, {'photo_id': 1353778310, 'portfolio_id': 22438094}, {'photo_id': 1353778295, 'portfolio_id': 22438094}, {'photo_id': 1353778290, 'portfolio_id': 22438094}, {'photo_id': 1353778266, 'portfolio_id': 22438094}, {'photo_id': 1353777947, 'portfolio_id': 22438094}, {'photo_id': 1353777914, 'portfolio_id': 22438094}, {'photo_id': 1353777884, 'portfolio_id': 22438094}, {'photo_id': 1353777845, 'portfolio_id': 22438094}, {'photo_id': 1353777816, 'portfolio_id': 22438094}, {'photo_id': 1353777637, 'portfolio_id': 22438094}, {'photo_id': 1353777608, 'portfolio_id': 22438094}, {'photo_id': 1353777600, 'portfolio_id': 22438094}, {'photo_id': 1353777523, 'portfolio_id': 22438094}, {'photo_id': 1353777505, 'portfolio_id': 22438094}, {'photo_id': 1353777474, 'portfolio_id': 22438094}, {'photo_id': 1353777454, 'portfolio_id': 22438094}, {'photo_id': 1353777433, 'portfolio_id': 22438094}, {'photo_id': 1353776981, 'portfolio_id': 22438094}, {'photo_id': 1353776926, 'portfolio_id': 22438094}, {'photo_id': 1353776878, 'portfolio_id': 22438094}, {'photo_id': 1353776845, 'portfolio_id': 22438094}, {'photo_id': 1353776817, 'portfolio_id': 22438094}, {'photo_id': 1353776788, 'portfolio_id': 22438094}, {'photo_id': 1353776160, 'portfolio_id': 22438094}, {'photo_id': 1353776116, 'portfolio_id': 22438094}, {'photo_id': 1353776085, 'portfolio_id': 22438094}, {'photo_id': 1353775888, 'portfolio_id': 22438094}, {'photo_id': 1353775886, 'portfolio_id': 22438094}, {'photo_id': 1353775884, 'portfolio_id': 22438094}, {'photo_id': 1353775882, 'portfolio_id': 22438094}, {'photo_id': 1353775876, 'portfolio_id': 22438094}, {'photo_id': 1353775778, 'portfolio_id': 22438094}, {'photo_id': 1353775765, 'portfolio_id': 22438094}, {'photo_id': 1353775764, 'portfolio_id': 22438094}, {'photo_id': 1353775762, 'portfolio_id': 22438094}, {'photo_id': 1353775759, 'portfolio_id': 22438094}, {'photo_id': 1353775548, 'portfolio_id': 22438094}, {'photo_id': 1353775514, 'portfolio_id': 22438094}] map_portfolio_id_photo_id: {22438094: [1353778375, 1353778367, 1353778365, 1353778360, 1353778328, 1353778325, 1353778310, 1353778295, 1353778290, 1353778266, 1353777947, 1353777914, 1353777884, 1353777845, 1353777816, 1353777637, 1353777608, 1353777600, 1353777523, 1353777505, 1353777474, 1353777454, 1353777433, 1353776981, 1353776926, 1353776878, 1353776845, 1353776817, 1353776788, 1353776160, 1353776116, 1353776085, 1353775888, 1353775886, 1353775884, 1353775882, 1353775876, 1353775778, 1353775765, 1353775764, 1353775762, 1353775759, 1353775548, 1353775514]} ##### 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.015427350997924805 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Apr 25 15:40:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22438094) 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 : 22438094 get user id for portfolio 22438094 get sub ptf for main ptf 22438094, type 3726 and hashtags ['autre_refus', 'cartonnette', 'Teint_Dans_La_Masse', 'kraft', 'metal', 'papier', 'plastique', 'Carton_brun', 'flou', 'mal_croppe', 'environnement', 'Carton_gris'] 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`=22438094 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','cartonnette','Teint_Dans_La_Masse','kraft','metal','papier','plastique','Carton_brun','flou','mal_croppe','environnement','Carton_gris')) 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`=22438094 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','cartonnette','Teint_Dans_La_Masse','kraft','metal','papier','plastique','Carton_brun','flou','mal_croppe','environnement','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 22438094, 'sub_port_id': 22438131, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14883644, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 34, 56)}, 'cartonnette': {'main_port_id': 22438094, 'sub_port_id': 22438132, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14883645, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 34, 56)}, 'Carton_brun': {'main_port_id': 22438094, 'sub_port_id': 22438133, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14883646, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 34, 56)}, 'mal_croppe': {'main_port_id': 22438094, 'sub_port_id': 22438134, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14883647, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 34, 56)}, 'plastique': {'main_port_id': 22438094, 'sub_port_id': 22438135, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14883648, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 34, 56)}, 'Carton_gris': {'main_port_id': 22438094, 'sub_port_id': 22438136, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14883649, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 34, 56)}, 'papier': {'main_port_id': 22438094, 'sub_port_id': 22438137, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14883650, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 34, 56)}, 'autre_refus': {'main_port_id': 22438094, 'sub_port_id': 22438138, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14883651, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 34, 56)}, 'metal': {'main_port_id': 22438094, 'sub_port_id': 22438139, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14883652, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 34, 56)}, 'environnement': {'main_port_id': 22438094, 'sub_port_id': 22438140, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14883653, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 34, 56)}, 'kraft': {'main_port_id': 22438094, 'sub_port_id': 22438141, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14883654, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 34, 56)}, 'Teint_Dans_La_Masse': {'main_port_id': 22438094, 'sub_port_id': 22438142, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14883655, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 34, 56)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22438131 , 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=22438094 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 (22438131) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22438094) result : ((1353775514,), (1353775548,), (1353775759,), (1353775762,), (1353775764,), (1353775765,), (1353775778,), (1353775876,), (1353775882,), (1353775884,), (1353775886,), (1353775888,), (1353776085,), (1353776116,), (1353776160,), (1353776788,), (1353776817,), (1353776845,), (1353776878,), (1353776926,), (1353776981,), (1353777433,), (1353777454,), (1353777474,), (1353777505,), (1353777523,), (1353777600,), (1353777608,), (1353777637,), (1353777816,), (1353777845,), (1353777884,), (1353777914,), (1353777947,), (1353778266,), (1353778290,), (1353778295,), (1353778310,), (1353778325,), (1353778328,), (1353778360,), (1353778365,), (1353778367,), (1353778375,)) 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 (1353777600) 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 22438132 , 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=22438094 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 (22438132) result : ((1353777587,), (1353777740,), (1353777871,), (1353777873,), (1353777875,), (1353777877,), (1353778340,), (1353778374,), (1353778393,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22438094) result : ((1353775514,), (1353775548,), (1353775759,), (1353775762,), (1353775764,), (1353775765,), (1353775778,), (1353775876,), (1353775882,), (1353775884,), (1353775886,), (1353775888,), (1353776085,), (1353776116,), (1353776160,), (1353776788,), (1353776817,), (1353776845,), (1353776878,), (1353776926,), (1353776981,), (1353777433,), (1353777454,), (1353777474,), (1353777505,), (1353777523,), (1353777600,), (1353777608,), (1353777637,), (1353777816,), (1353777845,), (1353777884,), (1353777914,), (1353777947,), (1353778266,), (1353778290,), (1353778295,), (1353778310,), (1353778325,), (1353778328,), (1353778360,), (1353778365,), (1353778367,), (1353778375,)) 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 (1353777600) 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 22438133 , 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=22438094 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 (22438133) result : ((1353777108,), (1353777109,), (1353777588,), (1353777744,), (1353777745,), (1353777746,), (1353777747,), (1353777748,), (1353777891,), (1353777893,), (1353778341,), (1353778342,), (1353778376,), (1353778377,), (1353778395,), (1353778396,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22438094) result : ((1353775514,), (1353775548,), (1353775759,), (1353775762,), (1353775764,), (1353775765,), (1353775778,), (1353775876,), (1353775882,), (1353775884,), (1353775886,), (1353775888,), (1353776085,), (1353776116,), (1353776160,), (1353776788,), (1353776817,), (1353776845,), (1353776878,), (1353776926,), (1353776981,), (1353777433,), (1353777454,), (1353777474,), (1353777505,), (1353777523,), (1353777600,), (1353777608,), (1353777637,), (1353777816,), (1353777845,), (1353777884,), (1353777914,), (1353777947,), (1353778266,), (1353778290,), (1353778295,), (1353778310,), (1353778325,), (1353778328,), (1353778360,), (1353778365,), (1353778367,), (1353778375,)) 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 (1353777600) 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 22438134 , 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=22438094 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 (22438134) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22438094) result : ((1353775514,), (1353775548,), (1353775759,), (1353775762,), (1353775764,), (1353775765,), (1353775778,), (1353775876,), (1353775882,), (1353775884,), (1353775886,), (1353775888,), (1353776085,), (1353776116,), (1353776160,), (1353776788,), (1353776817,), (1353776845,), (1353776878,), (1353776926,), (1353776981,), (1353777433,), (1353777454,), (1353777474,), (1353777505,), (1353777523,), (1353777600,), (1353777608,), (1353777637,), (1353777816,), (1353777845,), (1353777884,), (1353777914,), (1353777947,), (1353778266,), (1353778290,), (1353778295,), (1353778310,), (1353778325,), (1353778328,), (1353778360,), (1353778365,), (1353778367,), (1353778375,)) 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 (1353777600) 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 22438135 , 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=22438094 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 (22438135) result : ((1353777118,), (1353777900,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22438094) result : ((1353775514,), (1353775548,), (1353775759,), (1353775762,), (1353775764,), (1353775765,), (1353775778,), (1353775876,), (1353775882,), (1353775884,), (1353775886,), (1353775888,), (1353776085,), (1353776116,), (1353776160,), (1353776788,), (1353776817,), (1353776845,), (1353776878,), (1353776926,), (1353776981,), (1353777433,), (1353777454,), (1353777474,), (1353777505,), (1353777523,), (1353777600,), (1353777608,), (1353777637,), (1353777816,), (1353777845,), (1353777884,), (1353777914,), (1353777947,), (1353778266,), (1353778290,), (1353778295,), (1353778310,), (1353778325,), (1353778328,), (1353778360,), (1353778365,), (1353778367,), (1353778375,)) 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 (1353777600) 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 22438136 , 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=22438094 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 (22438136) result : ((1353777101,), (1353777408,), (1353777584,), (1353777585,), (1353777586,), (1353777853,), (1353777855,), (1353777857,), (1353777859,), (1353778372,), (1353778373,), (1353778391,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22438094) result : ((1353775514,), (1353775548,), (1353775759,), (1353775762,), (1353775764,), (1353775765,), (1353775778,), (1353775876,), (1353775882,), (1353775884,), (1353775886,), (1353775888,), (1353776085,), (1353776116,), (1353776160,), (1353776788,), (1353776817,), (1353776845,), (1353776878,), (1353776926,), (1353776981,), (1353777433,), (1353777454,), (1353777474,), (1353777505,), (1353777523,), (1353777600,), (1353777608,), (1353777637,), (1353777816,), (1353777845,), (1353777884,), (1353777914,), (1353777947,), (1353778266,), (1353778290,), (1353778295,), (1353778310,), (1353778325,), (1353778328,), (1353778360,), (1353778365,), (1353778367,), (1353778375,)) 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 (1353777600) 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 22438137 , 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=22438094 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 (22438137) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22438094) result : ((1353775514,), (1353775548,), (1353775759,), (1353775762,), (1353775764,), (1353775765,), (1353775778,), (1353775876,), (1353775882,), (1353775884,), (1353775886,), (1353775888,), (1353776085,), (1353776116,), (1353776160,), (1353776788,), (1353776817,), (1353776845,), (1353776878,), (1353776926,), (1353776981,), (1353777433,), (1353777454,), (1353777474,), (1353777505,), (1353777523,), (1353777600,), (1353777608,), (1353777637,), (1353777816,), (1353777845,), (1353777884,), (1353777914,), (1353777947,), (1353778266,), (1353778290,), (1353778295,), (1353778310,), (1353778325,), (1353778328,), (1353778360,), (1353778365,), (1353778367,), (1353778375,)) 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 (1353777600) 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 22438138 , 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=22438094 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 (22438138) result : ((1353777739,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22438094) result : ((1353775514,), (1353775548,), (1353775759,), (1353775762,), (1353775764,), (1353775765,), (1353775778,), (1353775876,), (1353775882,), (1353775884,), (1353775886,), (1353775888,), (1353776085,), (1353776116,), (1353776160,), (1353776788,), (1353776817,), (1353776845,), (1353776878,), (1353776926,), (1353776981,), (1353777433,), (1353777454,), (1353777474,), (1353777505,), (1353777523,), (1353777600,), (1353777608,), (1353777637,), (1353777816,), (1353777845,), (1353777884,), (1353777914,), (1353777947,), (1353778266,), (1353778290,), (1353778295,), (1353778310,), (1353778325,), (1353778328,), (1353778360,), (1353778365,), (1353778367,), (1353778375,)) 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 (1353777600) 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 22438139 , 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=22438094 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 (22438139) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22438094) result : ((1353775514,), (1353775548,), (1353775759,), (1353775762,), (1353775764,), (1353775765,), (1353775778,), (1353775876,), (1353775882,), (1353775884,), (1353775886,), (1353775888,), (1353776085,), (1353776116,), (1353776160,), (1353776788,), (1353776817,), (1353776845,), (1353776878,), (1353776926,), (1353776981,), (1353777433,), (1353777454,), (1353777474,), (1353777505,), (1353777523,), (1353777600,), (1353777608,), (1353777637,), (1353777816,), (1353777845,), (1353777884,), (1353777914,), (1353777947,), (1353778266,), (1353778290,), (1353778295,), (1353778310,), (1353778325,), (1353778328,), (1353778360,), (1353778365,), (1353778367,), (1353778375,)) 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 (1353777600) 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 22438140 , 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=22438094 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 (22438140) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22438094) result : ((1353775514,), (1353775548,), (1353775759,), (1353775762,), (1353775764,), (1353775765,), (1353775778,), (1353775876,), (1353775882,), (1353775884,), (1353775886,), (1353775888,), (1353776085,), (1353776116,), (1353776160,), (1353776788,), (1353776817,), (1353776845,), (1353776878,), (1353776926,), (1353776981,), (1353777433,), (1353777454,), (1353777474,), (1353777505,), (1353777523,), (1353777600,), (1353777608,), (1353777637,), (1353777816,), (1353777845,), (1353777884,), (1353777914,), (1353777947,), (1353778266,), (1353778290,), (1353778295,), (1353778310,), (1353778325,), (1353778328,), (1353778360,), (1353778365,), (1353778367,), (1353778375,)) 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 (1353777600) 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 22438141 , 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=22438094 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 (22438141) result : ((1353777924,), (1353777926,), (1353777928,), (1353778343,), (1353778379,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22438094) result : ((1353775514,), (1353775548,), (1353775759,), (1353775762,), (1353775764,), (1353775765,), (1353775778,), (1353775876,), (1353775882,), (1353775884,), (1353775886,), (1353775888,), (1353776085,), (1353776116,), (1353776160,), (1353776788,), (1353776817,), (1353776845,), (1353776878,), (1353776926,), (1353776981,), (1353777433,), (1353777454,), (1353777474,), (1353777505,), (1353777523,), (1353777600,), (1353777608,), (1353777637,), (1353777816,), (1353777845,), (1353777884,), (1353777914,), (1353777947,), (1353778266,), (1353778290,), (1353778295,), (1353778310,), (1353778325,), (1353778328,), (1353778360,), (1353778365,), (1353778367,), (1353778375,)) 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 (1353777600) 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 22438142 , 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=22438094 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 (22438142) result : ((1353777096,), (1353777580,), (1353777737,), (1353777738,), (1353777841,), (1353778336,), (1353778337,), (1353778338,), (1353778369,), (1353778370,), (1353778388,), (1353778389,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22438094) result : ((1353775514,), (1353775548,), (1353775759,), (1353775762,), (1353775764,), (1353775765,), (1353775778,), (1353775876,), (1353775882,), (1353775884,), (1353775886,), (1353775888,), (1353776085,), (1353776116,), (1353776160,), (1353776788,), (1353776817,), (1353776845,), (1353776878,), (1353776926,), (1353776981,), (1353777433,), (1353777454,), (1353777474,), (1353777505,), (1353777523,), (1353777600,), (1353777608,), (1353777637,), (1353777816,), (1353777845,), (1353777884,), (1353777914,), (1353777947,), (1353778266,), (1353778290,), (1353778295,), (1353778310,), (1353778325,), (1353778328,), (1353778360,), (1353778365,), (1353778367,), (1353778375,)) 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 (1353777600) 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`=22438094 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','cartonnette','Teint_Dans_La_Masse','kraft','metal','papier','plastique','Carton_brun','flou','mal_croppe','environnement','Carton_gris')) 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`=22438094 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','cartonnette','Teint_Dans_La_Masse','kraft','metal','papier','plastique','Carton_brun','flou','mal_croppe','environnement','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 22438094, 'sub_port_id': 22438146, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14883656, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 34, 58)}, 'cartonnette': {'main_port_id': 22438094, 'sub_port_id': 22438147, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14883657, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 34, 58)}, 'Carton_brun': {'main_port_id': 22438094, 'sub_port_id': 22438149, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14883658, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 34, 58)}, 'mal_croppe': {'main_port_id': 22438094, 'sub_port_id': 22438150, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14883659, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 34, 58)}, 'plastique': {'main_port_id': 22438094, 'sub_port_id': 22438151, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14883660, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 34, 58)}, 'Carton_gris': {'main_port_id': 22438094, 'sub_port_id': 22438152, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14883661, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 34, 58)}, 'papier': {'main_port_id': 22438094, 'sub_port_id': 22438154, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14883662, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 34, 58)}, 'autre_refus': {'main_port_id': 22438094, 'sub_port_id': 22438155, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14883663, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 34, 58)}, 'metal': {'main_port_id': 22438094, 'sub_port_id': 22438156, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14883664, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 34, 58)}, 'environnement': {'main_port_id': 22438094, 'sub_port_id': 22438157, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14883665, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 34, 58)}, 'kraft': {'main_port_id': 22438094, 'sub_port_id': 22438159, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14883666, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 34, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 22438094, 'sub_port_id': 22438160, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14883667, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 34, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22438146,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22438131 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22438147,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22438132 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22438149,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22438133 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22438150,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22438134 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22438151,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22438135 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22438152,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22438136 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22438154,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22438137 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22438155,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22438138 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22438156,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22438139 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22438157,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22438140 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22438159,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22438141 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22438160,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22438142 lien utilise dans velours : https://www.fotonower.com/velours/22438146,22438147,22438149,22438150,22438151,22438152,22438154,22438155,22438156,22438157,22438159,22438160?tags=flou,cartonnette,Carton_brun,mal_croppe,plastique,Carton_gris,papier,autre_refus,metal,environnement,kraft,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22438094]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1353778375, 1353778367, 1353778365, 1353778360, 1353778328, 1353778325, 1353778310, 1353778295, 1353778290, 1353778266, 1353777947, 1353777914, 1353777884, 1353777845, 1353777816] map_info['map_portfolio_photo'] : {22438094: [1353778375, 1353778367, 1353778365, 1353778360, 1353778328, 1353778325, 1353778310, 1353778295, 1353778290, 1353778266, 1353777947, 1353777914, 1353777884, 1353777845, 1353777816, 1353777637, 1353777608, 1353777600, 1353777523, 1353777505, 1353777474, 1353777454, 1353777433, 1353776981, 1353776926, 1353776878, 1353776845, 1353776817, 1353776788, 1353776160, 1353776116, 1353776085, 1353775888, 1353775886, 1353775884, 1353775882, 1353775876, 1353775778, 1353775765, 1353775764, 1353775762, 1353775759, 1353775548, 1353775514]} final : False mtd_id 4302 list_pids : [1353778375, 1353778367, 1353778365, 1353778360, 1353778328, 1353778325, 1353778310, 1353778295, 1353778290, 1353778266, 1353777947, 1353777914, 1353777884, 1353777845, 1353777816] Looping around the photos to save general results len do output : 1 /22438094. 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, '2762998') ('4302', '22438094', '1353778375', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353778367', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353778365', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353778360', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353778328', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353778325', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353778310', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353778295', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353778290', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353778266', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353777947', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353777914', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353777884', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353777845', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353777816', None, None, None, None, None, '2762998') 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, '22438094', "{'flou': 22438131, 'cartonnette': 22438132, 'Carton_brun': 22438133, 'mal_croppe': 22438134, 'plastique': 22438135, 'Carton_gris': 22438136, 'papier': 22438137, 'autre_refus': 22438138, 'metal': 22438139, 'environnement': 22438140, 'kraft': 22438141, 'Teint_Dans_La_Masse': 22438142}", None, None, None, None, '2762998'), ('4302', '22438094', '1353778375', None, None, None, None, None, '2762998'), ('4302', '22438094', '1353778367', None, None, None, None, None, '2762998'), ('4302', '22438094', '1353778365', None, None, None, None, None, '2762998'), ('4302', '22438094', '1353778360', None, None, None, None, None, '2762998'), ('4302', '22438094', '1353778328', None, None, None, None, None, '2762998'), ('4302', '22438094', '1353778325', None, None, None, None, None, '2762998'), ('4302', '22438094', '1353778310', None, None, None, None, None, '2762998'), ('4302', '22438094', '1353778295', None, None, None, None, None, '2762998'), ('4302', '22438094', '1353778290', None, None, None, None, None, '2762998'), ('4302', '22438094', '1353778266', None, None, None, None, None, '2762998'), ('4302', '22438094', '1353777947', None, None, None, None, None, '2762998'), ('4302', '22438094', '1353777914', None, None, None, None, None, '2762998'), ('4302', '22438094', '1353777884', None, None, None, None, None, '2762998'), ('4302', '22438094', '1353777845', None, None, None, None, None, '2762998'), ('4302', '22438094', '1353777816', None, None, None, None, None, '2762998')] time used for this insertion : 0.014695882797241211 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4522359371185303 time spend to save output : 0.015035152435302734 total time spend for step 1 : 0.467271089553833 step2:final Fri Apr 25 15:40:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22438094) 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 22438094 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1353775548,1353775514,1353775778,1353775765,1353775764,1353775762,1353775759,1353775888,1353775886,1353775884,1353775882,1353775876,1353776160,1353776116,1353776085,1353776981,1353776926,1353776878,1353776845,1353776817,1353776788,1353777523,1353777505,1353777474,1353777454,1353777433,1353777637,1353777608,1353777600,1353777947,1353777914,1353777884,1353777845,1353777816,1353778328,1353778325,1353778310,1353778295,1353778290,1353778266,1353778375,1353778367,1353778365,1353778360); 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([22438094]) Inside saveOutput : final : False verbose : True original output for save of step final : {1353778375: ('0.04725898049015384',), 1353778367: ('0.04725898049015384',), 1353778365: ('0.04725898049015384',), 1353778360: ('0.04725898049015384',), 1353778328: ('0.04725898049015384',), 1353778325: ('0.04725898049015384',), 1353778310: ('0.04725898049015384',), 1353778295: ('0.04725898049015384',), 1353778290: ('0.04725898049015384',), 1353778266: ('0.04725898049015384',), 1353777947: ('0.04725898049015384',), 1353777914: ('0.04725898049015384',), 1353777884: ('0.04725898049015384',), 1353777845: ('0.04725898049015384',), 1353777816: ('0.04725898049015384',)} new output for save of step final : {1353778375: ('0.04725898049015384',), 1353778367: ('0.04725898049015384',), 1353778365: ('0.04725898049015384',), 1353778360: ('0.04725898049015384',), 1353778328: ('0.04725898049015384',), 1353778325: ('0.04725898049015384',), 1353778310: ('0.04725898049015384',), 1353778295: ('0.04725898049015384',), 1353778290: ('0.04725898049015384',), 1353778266: ('0.04725898049015384',), 1353777947: ('0.04725898049015384',), 1353777914: ('0.04725898049015384',), 1353777884: ('0.04725898049015384',), 1353777845: ('0.04725898049015384',), 1353777816: ('0.04725898049015384',)} [1353778375, 1353778367, 1353778365, 1353778360, 1353778328, 1353778325, 1353778310, 1353778295, 1353778290, 1353778266, 1353777947, 1353777914, 1353777884, 1353777845, 1353777816] map_info['map_portfolio_photo'] : {22438094: [1353778375, 1353778367, 1353778365, 1353778360, 1353778328, 1353778325, 1353778310, 1353778295, 1353778290, 1353778266, 1353777947, 1353777914, 1353777884, 1353777845, 1353777816, 1353777637, 1353777608, 1353777600, 1353777523, 1353777505, 1353777474, 1353777454, 1353777433, 1353776981, 1353776926, 1353776878, 1353776845, 1353776817, 1353776788, 1353776160, 1353776116, 1353776085, 1353775888, 1353775886, 1353775884, 1353775882, 1353775876, 1353775778, 1353775765, 1353775764, 1353775762, 1353775759, 1353775548, 1353775514]} final : False mtd_id 4302 list_pids : [1353778375, 1353778367, 1353778365, 1353778360, 1353778328, 1353778325, 1353778310, 1353778295, 1353778290, 1353778266, 1353777947, 1353777914, 1353777884, 1353777845, 1353777816] Looping around the photos to save general results len do output : 15 /1353778375.Didn't retrieve data . /1353778367.Didn't retrieve data . /1353778365.Didn't retrieve data . /1353778360.Didn't retrieve data . /1353778328.Didn't retrieve data . /1353778325.Didn't retrieve data . /1353778310.Didn't retrieve data . /1353778295.Didn't retrieve data . /1353778290.Didn't retrieve data . /1353778266.Didn't retrieve data . /1353777947.Didn't retrieve data . /1353777914.Didn't retrieve data . /1353777884.Didn't retrieve data . /1353777845.Didn't retrieve data . /1353777816.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, '2762998') ('4302', '22438094', '1353778375', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353778367', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353778365', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353778360', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353778328', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353778325', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353778310', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353778295', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353778290', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353778266', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353777947', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353777914', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353777884', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353777845', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353777816', None, None, None, None, None, '2762998') 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', '22438094', '1353778375', '0.04725898049015384', None, None, None, None, '2762998'), ('4302', '22438094', '1353778367', '0.04725898049015384', None, None, None, None, '2762998'), ('4302', '22438094', '1353778365', '0.04725898049015384', None, None, None, None, '2762998'), ('4302', '22438094', '1353778360', '0.04725898049015384', None, None, None, None, '2762998'), ('4302', '22438094', '1353778328', '0.04725898049015384', None, None, None, None, '2762998'), ('4302', '22438094', '1353778325', '0.04725898049015384', None, None, None, None, '2762998'), ('4302', '22438094', '1353778310', '0.04725898049015384', None, None, None, None, '2762998'), ('4302', '22438094', '1353778295', '0.04725898049015384', None, None, None, None, '2762998'), ('4302', '22438094', '1353778290', '0.04725898049015384', None, None, None, None, '2762998'), ('4302', '22438094', '1353778266', '0.04725898049015384', None, None, None, None, '2762998'), ('4302', '22438094', '1353777947', '0.04725898049015384', None, None, None, None, '2762998'), ('4302', '22438094', '1353777914', '0.04725898049015384', None, None, None, None, '2762998'), ('4302', '22438094', '1353777884', '0.04725898049015384', None, None, None, None, '2762998'), ('4302', '22438094', '1353777845', '0.04725898049015384', None, None, None, None, '2762998'), ('4302', '22438094', '1353777816', '0.04725898049015384', None, None, None, None, '2762998')] time used for this insertion : 0.014760017395019531 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06512117385864258 time spend to save output : 0.015475273132324219 total time spend for step 2 : 0.0805964469909668 step3:velours_tree Fri Apr 25 15:40:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22438094: [{'flou': 22438131, 'cartonnette': 22438132, 'Carton_brun': 22438133, 'mal_croppe': 22438134, 'plastique': 22438135, 'Carton_gris': 22438136, 'papier': 22438137, 'autre_refus': 22438138, 'metal': 22438139, 'environnement': 22438140, 'kraft': 22438141, 'Teint_Dans_La_Masse': 22438142}]} input_args_next_step : {22438094: ()} output_args : {22438094: [{'flou': 22438131, 'cartonnette': 22438132, 'Carton_brun': 22438133, 'mal_croppe': 22438134, 'plastique': 22438135, 'Carton_gris': 22438136, 'papier': 22438137, 'autre_refus': 22438138, 'metal': 22438139, 'environnement': 22438140, 'kraft': 22438141, 'Teint_Dans_La_Masse': 22438142}]} args : 22438094 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'flou': 22438131, 'cartonnette': 22438132, 'Carton_brun': 22438133, 'mal_croppe': 22438134, 'plastique': 22438135, 'Carton_gris': 22438136, 'papier': 22438137, 'autre_refus': 22438138, 'metal': 22438139, 'environnement': 22438140, 'kraft': 22438141, 'Teint_Dans_La_Masse': 22438142},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22438094) 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([22438094]) 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.3257317543029785 time spend to save output : 3.933906555175781e-05 total time spend for step 3 : 0.3257710933685303 step4:send_mail_cod Fri Apr 25 15:41:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1353778375: ('0.04725898049015384',), 1353778367: ('0.04725898049015384',), 1353778365: ('0.04725898049015384',), 1353778360: ('0.04725898049015384',), 1353778328: ('0.04725898049015384',), 1353778325: ('0.04725898049015384',), 1353778310: ('0.04725898049015384',), 1353778295: ('0.04725898049015384',), 1353778290: ('0.04725898049015384',), 1353778266: ('0.04725898049015384',), 1353777947: ('0.04725898049015384',), 1353777914: ('0.04725898049015384',), 1353777884: ('0.04725898049015384',), 1353777845: ('0.04725898049015384',), 1353777816: ('0.04725898049015384',)} input_args_next_step : {1353778375: ()} output_args : {1353778375: ('0.04725898049015384',), 1353778367: ('0.04725898049015384',), 1353778365: ('0.04725898049015384',), 1353778360: ('0.04725898049015384',), 1353778328: ('0.04725898049015384',), 1353778325: ('0.04725898049015384',), 1353778310: ('0.04725898049015384',), 1353778295: ('0.04725898049015384',), 1353778290: ('0.04725898049015384',), 1353778266: ('0.04725898049015384',), 1353777947: ('0.04725898049015384',), 1353777914: ('0.04725898049015384',), 1353777884: ('0.04725898049015384',), 1353777845: ('0.04725898049015384',), 1353777816: ('0.04725898049015384',)} args : 1353778375 depend.output_id : 0 input_args_next_step : {1353778375: ('0.04725898049015384',), 1353778367: ()} output_args : {1353778375: ('0.04725898049015384',), 1353778367: ('0.04725898049015384',), 1353778365: ('0.04725898049015384',), 1353778360: ('0.04725898049015384',), 1353778328: ('0.04725898049015384',), 1353778325: ('0.04725898049015384',), 1353778310: ('0.04725898049015384',), 1353778295: ('0.04725898049015384',), 1353778290: ('0.04725898049015384',), 1353778266: ('0.04725898049015384',), 1353777947: ('0.04725898049015384',), 1353777914: ('0.04725898049015384',), 1353777884: ('0.04725898049015384',), 1353777845: ('0.04725898049015384',), 1353777816: ('0.04725898049015384',)} args : 1353778367 depend.output_id : 0 input_args_next_step : {1353778375: ('0.04725898049015384',), 1353778367: ('0.04725898049015384',), 1353778365: ()} output_args : {1353778375: ('0.04725898049015384',), 1353778367: ('0.04725898049015384',), 1353778365: ('0.04725898049015384',), 1353778360: ('0.04725898049015384',), 1353778328: ('0.04725898049015384',), 1353778325: ('0.04725898049015384',), 1353778310: ('0.04725898049015384',), 1353778295: ('0.04725898049015384',), 1353778290: ('0.04725898049015384',), 1353778266: ('0.04725898049015384',), 1353777947: ('0.04725898049015384',), 1353777914: ('0.04725898049015384',), 1353777884: ('0.04725898049015384',), 1353777845: ('0.04725898049015384',), 1353777816: ('0.04725898049015384',)} args : 1353778365 depend.output_id : 0 input_args_next_step : {1353778375: ('0.04725898049015384',), 1353778367: ('0.04725898049015384',), 1353778365: ('0.04725898049015384',), 1353778360: ()} output_args : {1353778375: ('0.04725898049015384',), 1353778367: ('0.04725898049015384',), 1353778365: ('0.04725898049015384',), 1353778360: ('0.04725898049015384',), 1353778328: ('0.04725898049015384',), 1353778325: ('0.04725898049015384',), 1353778310: ('0.04725898049015384',), 1353778295: ('0.04725898049015384',), 1353778290: ('0.04725898049015384',), 1353778266: ('0.04725898049015384',), 1353777947: ('0.04725898049015384',), 1353777914: ('0.04725898049015384',), 1353777884: ('0.04725898049015384',), 1353777845: ('0.04725898049015384',), 1353777816: ('0.04725898049015384',)} args : 1353778360 depend.output_id : 0 input_args_next_step : {1353778375: ('0.04725898049015384',), 1353778367: ('0.04725898049015384',), 1353778365: ('0.04725898049015384',), 1353778360: ('0.04725898049015384',), 1353778328: ()} output_args : {1353778375: ('0.04725898049015384',), 1353778367: ('0.04725898049015384',), 1353778365: ('0.04725898049015384',), 1353778360: ('0.04725898049015384',), 1353778328: ('0.04725898049015384',), 1353778325: ('0.04725898049015384',), 1353778310: ('0.04725898049015384',), 1353778295: ('0.04725898049015384',), 1353778290: ('0.04725898049015384',), 1353778266: ('0.04725898049015384',), 1353777947: ('0.04725898049015384',), 1353777914: ('0.04725898049015384',), 1353777884: ('0.04725898049015384',), 1353777845: ('0.04725898049015384',), 1353777816: ('0.04725898049015384',)} args : 1353778328 depend.output_id : 0 input_args_next_step : {1353778375: ('0.04725898049015384',), 1353778367: ('0.04725898049015384',), 1353778365: ('0.04725898049015384',), 1353778360: ('0.04725898049015384',), 1353778328: ('0.04725898049015384',), 1353778325: ()} output_args : {1353778375: ('0.04725898049015384',), 1353778367: ('0.04725898049015384',), 1353778365: ('0.04725898049015384',), 1353778360: ('0.04725898049015384',), 1353778328: ('0.04725898049015384',), 1353778325: ('0.04725898049015384',), 1353778310: ('0.04725898049015384',), 1353778295: ('0.04725898049015384',), 1353778290: ('0.04725898049015384',), 1353778266: ('0.04725898049015384',), 1353777947: ('0.04725898049015384',), 1353777914: ('0.04725898049015384',), 1353777884: ('0.04725898049015384',), 1353777845: ('0.04725898049015384',), 1353777816: ('0.04725898049015384',)} args : 1353778325 depend.output_id : 0 input_args_next_step : {1353778375: ('0.04725898049015384',), 1353778367: ('0.04725898049015384',), 1353778365: ('0.04725898049015384',), 1353778360: ('0.04725898049015384',), 1353778328: ('0.04725898049015384',), 1353778325: ('0.04725898049015384',), 1353778310: ()} output_args : {1353778375: ('0.04725898049015384',), 1353778367: ('0.04725898049015384',), 1353778365: ('0.04725898049015384',), 1353778360: ('0.04725898049015384',), 1353778328: ('0.04725898049015384',), 1353778325: ('0.04725898049015384',), 1353778310: ('0.04725898049015384',), 1353778295: ('0.04725898049015384',), 1353778290: ('0.04725898049015384',), 1353778266: ('0.04725898049015384',), 1353777947: ('0.04725898049015384',), 1353777914: ('0.04725898049015384',), 1353777884: ('0.04725898049015384',), 1353777845: ('0.04725898049015384',), 1353777816: ('0.04725898049015384',)} args : 1353778310 depend.output_id : 0 input_args_next_step : {1353778375: ('0.04725898049015384',), 1353778367: ('0.04725898049015384',), 1353778365: ('0.04725898049015384',), 1353778360: ('0.04725898049015384',), 1353778328: ('0.04725898049015384',), 1353778325: ('0.04725898049015384',), 1353778310: ('0.04725898049015384',), 1353778295: ()} output_args : {1353778375: ('0.04725898049015384',), 1353778367: ('0.04725898049015384',), 1353778365: ('0.04725898049015384',), 1353778360: ('0.04725898049015384',), 1353778328: ('0.04725898049015384',), 1353778325: ('0.04725898049015384',), 1353778310: ('0.04725898049015384',), 1353778295: ('0.04725898049015384',), 1353778290: ('0.04725898049015384',), 1353778266: ('0.04725898049015384',), 1353777947: ('0.04725898049015384',), 1353777914: ('0.04725898049015384',), 1353777884: ('0.04725898049015384',), 1353777845: ('0.04725898049015384',), 1353777816: ('0.04725898049015384',)} args : 1353778295 depend.output_id : 0 input_args_next_step : {1353778375: ('0.04725898049015384',), 1353778367: ('0.04725898049015384',), 1353778365: ('0.04725898049015384',), 1353778360: ('0.04725898049015384',), 1353778328: ('0.04725898049015384',), 1353778325: ('0.04725898049015384',), 1353778310: ('0.04725898049015384',), 1353778295: ('0.04725898049015384',), 1353778290: ()} output_args : {1353778375: ('0.04725898049015384',), 1353778367: ('0.04725898049015384',), 1353778365: ('0.04725898049015384',), 1353778360: ('0.04725898049015384',), 1353778328: ('0.04725898049015384',), 1353778325: ('0.04725898049015384',), 1353778310: ('0.04725898049015384',), 1353778295: ('0.04725898049015384',), 1353778290: ('0.04725898049015384',), 1353778266: ('0.04725898049015384',), 1353777947: ('0.04725898049015384',), 1353777914: ('0.04725898049015384',), 1353777884: ('0.04725898049015384',), 1353777845: ('0.04725898049015384',), 1353777816: ('0.04725898049015384',)} args : 1353778290 depend.output_id : 0 input_args_next_step : {1353778375: ('0.04725898049015384',), 1353778367: ('0.04725898049015384',), 1353778365: ('0.04725898049015384',), 1353778360: ('0.04725898049015384',), 1353778328: ('0.04725898049015384',), 1353778325: ('0.04725898049015384',), 1353778310: ('0.04725898049015384',), 1353778295: ('0.04725898049015384',), 1353778290: ('0.04725898049015384',), 1353778266: ()} output_args : {1353778375: ('0.04725898049015384',), 1353778367: ('0.04725898049015384',), 1353778365: ('0.04725898049015384',), 1353778360: ('0.04725898049015384',), 1353778328: ('0.04725898049015384',), 1353778325: ('0.04725898049015384',), 1353778310: ('0.04725898049015384',), 1353778295: ('0.04725898049015384',), 1353778290: ('0.04725898049015384',), 1353778266: ('0.04725898049015384',), 1353777947: ('0.04725898049015384',), 1353777914: ('0.04725898049015384',), 1353777884: ('0.04725898049015384',), 1353777845: ('0.04725898049015384',), 1353777816: ('0.04725898049015384',)} args : 1353778266 depend.output_id : 0 input_args_next_step : {1353778375: ('0.04725898049015384',), 1353778367: ('0.04725898049015384',), 1353778365: ('0.04725898049015384',), 1353778360: ('0.04725898049015384',), 1353778328: ('0.04725898049015384',), 1353778325: ('0.04725898049015384',), 1353778310: ('0.04725898049015384',), 1353778295: ('0.04725898049015384',), 1353778290: ('0.04725898049015384',), 1353778266: ('0.04725898049015384',), 1353777947: ()} output_args : {1353778375: ('0.04725898049015384',), 1353778367: ('0.04725898049015384',), 1353778365: ('0.04725898049015384',), 1353778360: ('0.04725898049015384',), 1353778328: ('0.04725898049015384',), 1353778325: ('0.04725898049015384',), 1353778310: ('0.04725898049015384',), 1353778295: ('0.04725898049015384',), 1353778290: ('0.04725898049015384',), 1353778266: ('0.04725898049015384',), 1353777947: ('0.04725898049015384',), 1353777914: ('0.04725898049015384',), 1353777884: ('0.04725898049015384',), 1353777845: ('0.04725898049015384',), 1353777816: ('0.04725898049015384',)} args : 1353777947 depend.output_id : 0 input_args_next_step : {1353778375: ('0.04725898049015384',), 1353778367: ('0.04725898049015384',), 1353778365: ('0.04725898049015384',), 1353778360: ('0.04725898049015384',), 1353778328: ('0.04725898049015384',), 1353778325: ('0.04725898049015384',), 1353778310: ('0.04725898049015384',), 1353778295: ('0.04725898049015384',), 1353778290: ('0.04725898049015384',), 1353778266: ('0.04725898049015384',), 1353777947: ('0.04725898049015384',), 1353777914: ()} output_args : {1353778375: ('0.04725898049015384',), 1353778367: ('0.04725898049015384',), 1353778365: ('0.04725898049015384',), 1353778360: ('0.04725898049015384',), 1353778328: ('0.04725898049015384',), 1353778325: ('0.04725898049015384',), 1353778310: ('0.04725898049015384',), 1353778295: ('0.04725898049015384',), 1353778290: ('0.04725898049015384',), 1353778266: ('0.04725898049015384',), 1353777947: ('0.04725898049015384',), 1353777914: ('0.04725898049015384',), 1353777884: ('0.04725898049015384',), 1353777845: ('0.04725898049015384',), 1353777816: ('0.04725898049015384',)} args : 1353777914 depend.output_id : 0 input_args_next_step : {1353778375: ('0.04725898049015384',), 1353778367: ('0.04725898049015384',), 1353778365: ('0.04725898049015384',), 1353778360: ('0.04725898049015384',), 1353778328: ('0.04725898049015384',), 1353778325: ('0.04725898049015384',), 1353778310: ('0.04725898049015384',), 1353778295: ('0.04725898049015384',), 1353778290: ('0.04725898049015384',), 1353778266: ('0.04725898049015384',), 1353777947: ('0.04725898049015384',), 1353777914: ('0.04725898049015384',), 1353777884: ()} output_args : {1353778375: ('0.04725898049015384',), 1353778367: ('0.04725898049015384',), 1353778365: ('0.04725898049015384',), 1353778360: ('0.04725898049015384',), 1353778328: ('0.04725898049015384',), 1353778325: ('0.04725898049015384',), 1353778310: ('0.04725898049015384',), 1353778295: ('0.04725898049015384',), 1353778290: ('0.04725898049015384',), 1353778266: ('0.04725898049015384',), 1353777947: ('0.04725898049015384',), 1353777914: ('0.04725898049015384',), 1353777884: ('0.04725898049015384',), 1353777845: ('0.04725898049015384',), 1353777816: ('0.04725898049015384',)} args : 1353777884 depend.output_id : 0 input_args_next_step : {1353778375: ('0.04725898049015384',), 1353778367: ('0.04725898049015384',), 1353778365: ('0.04725898049015384',), 1353778360: ('0.04725898049015384',), 1353778328: ('0.04725898049015384',), 1353778325: ('0.04725898049015384',), 1353778310: ('0.04725898049015384',), 1353778295: ('0.04725898049015384',), 1353778290: ('0.04725898049015384',), 1353778266: ('0.04725898049015384',), 1353777947: ('0.04725898049015384',), 1353777914: ('0.04725898049015384',), 1353777884: ('0.04725898049015384',), 1353777845: ()} output_args : {1353778375: ('0.04725898049015384',), 1353778367: ('0.04725898049015384',), 1353778365: ('0.04725898049015384',), 1353778360: ('0.04725898049015384',), 1353778328: ('0.04725898049015384',), 1353778325: ('0.04725898049015384',), 1353778310: ('0.04725898049015384',), 1353778295: ('0.04725898049015384',), 1353778290: ('0.04725898049015384',), 1353778266: ('0.04725898049015384',), 1353777947: ('0.04725898049015384',), 1353777914: ('0.04725898049015384',), 1353777884: ('0.04725898049015384',), 1353777845: ('0.04725898049015384',), 1353777816: ('0.04725898049015384',)} args : 1353777845 depend.output_id : 0 input_args_next_step : {1353778375: ('0.04725898049015384',), 1353778367: ('0.04725898049015384',), 1353778365: ('0.04725898049015384',), 1353778360: ('0.04725898049015384',), 1353778328: ('0.04725898049015384',), 1353778325: ('0.04725898049015384',), 1353778310: ('0.04725898049015384',), 1353778295: ('0.04725898049015384',), 1353778290: ('0.04725898049015384',), 1353778266: ('0.04725898049015384',), 1353777947: ('0.04725898049015384',), 1353777914: ('0.04725898049015384',), 1353777884: ('0.04725898049015384',), 1353777845: ('0.04725898049015384',), 1353777816: ()} output_args : {1353778375: ('0.04725898049015384',), 1353778367: ('0.04725898049015384',), 1353778365: ('0.04725898049015384',), 1353778360: ('0.04725898049015384',), 1353778328: ('0.04725898049015384',), 1353778325: ('0.04725898049015384',), 1353778310: ('0.04725898049015384',), 1353778295: ('0.04725898049015384',), 1353778290: ('0.04725898049015384',), 1353778266: ('0.04725898049015384',), 1353777947: ('0.04725898049015384',), 1353777914: ('0.04725898049015384',), 1353777884: ('0.04725898049015384',), 1353777845: ('0.04725898049015384',), 1353777816: ('0.04725898049015384',)} args : 1353777816 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 : {22438094: [{'flou': 22438131, 'cartonnette': 22438132, 'Carton_brun': 22438133, 'mal_croppe': 22438134, 'plastique': 22438135, 'Carton_gris': 22438136, 'papier': 22438137, 'autre_refus': 22438138, 'metal': 22438139, 'environnement': 22438140, 'kraft': 22438141, 'Teint_Dans_La_Masse': 22438142}]} input_args_next_step : {1353778375: ('0.04725898049015384',), 1353778367: ('0.04725898049015384',), 1353778365: ('0.04725898049015384',), 1353778360: ('0.04725898049015384',), 1353778328: ('0.04725898049015384',), 1353778325: ('0.04725898049015384',), 1353778310: ('0.04725898049015384',), 1353778295: ('0.04725898049015384',), 1353778290: ('0.04725898049015384',), 1353778266: ('0.04725898049015384',), 1353777947: ('0.04725898049015384',), 1353777914: ('0.04725898049015384',), 1353777884: ('0.04725898049015384',), 1353777845: ('0.04725898049015384',), 1353777816: ('0.04725898049015384',), 22438094: ()} output_args : {22438094: [{'flou': 22438131, 'cartonnette': 22438132, 'Carton_brun': 22438133, 'mal_croppe': 22438134, 'plastique': 22438135, 'Carton_gris': 22438136, 'papier': 22438137, 'autre_refus': 22438138, 'metal': 22438139, 'environnement': 22438140, 'kraft': 22438141, 'Teint_Dans_La_Masse': 22438142}]} args : 22438094 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.04725898049015384',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22438094) 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 (1353778375,1353778367,1353778365,1353778360,1353778328,1353778325,1353778310,1353778295,1353778290,1353778266,1353777947,1353777914,1353777884,1353777845,1353777816) Found this number of photos: 15 ##### Call download_photos : nb_thread : 5 begin to download photo : 1353777816 begin to download photo : 1353777947 begin to download photo : 1353778310 begin to download photo : 1353778365 download finish for photo 1353777947 begin to download photo : 1353778266 download finish for photo 1353777816 begin to download photo : 1353777845 download finish for photo 1353778365 begin to download photo : 1353778367 download finish for photo 1353778310 begin to download photo : 1353778325 download finish for photo 1353777845 begin to download photo : 1353777884 download finish for photo 1353778266 begin to download photo : 1353778290 download finish for photo 1353778367 begin to download photo : 1353778375 download finish for photo 1353778325 begin to download photo : 1353778328 download finish for photo 1353777884 begin to download photo : 1353777914 download finish for photo 1353778375 download finish for photo 1353778290 begin to download photo : 1353778295 download finish for photo 1353778328 begin to download photo : 1353778360 download finish for photo 1353777914 download finish for photo 1353778360 download finish for photo 1353778295 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette224381311745588460/ length of list_filenames : 15 ; length of list_pids : 15 ; length of list_args : 15 results_Auto_P22438094_25-04-2025_15_41_00.pdf 22438131 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=22438131 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224381311745588460 22438132 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=22438132 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353777587: '1745588171_2057826_1353775886_eaa4abbe1e58c71ee19575eaea05fa3b_rle_crop_3770105888_0.png', 1353777740: '1745588233_2058396_1353776845_073b7115f42998f8f780587334406b0d_rle_crop_3770106696_0.png', 1353777871: '1745588261_1978823_1353775764_809779b4e13782b8d5314f5ad5aa282c_rle_crop_3770107207_0.png', 1353777873: '1745588261_1978823_1353775759_c2ea2e0d4a9a454a464e4a92c09c7969_rle_crop_3770107237_0.png', 1353777875: '1745588261_1978823_1353775759_c2ea2e0d4a9a454a464e4a92c09c7969_rle_crop_3770107240_0.png', 1353777877: '1745588261_1978823_1353775759_c2ea2e0d4a9a454a464e4a92c09c7969_rle_crop_3770107238_0.png', 1353778340: '1745588352_2059415_1353777608_98ab54dc4bb672921b00c3938ebe4a0b_rle_crop_3770107493_0.png', 1353778374: '1745588381_1981818_1353777637_1ae734439a637061e244d10506c35b2c_rle_crop_3770107658_0.png', 1353778393: '1745588412_2060121_1353777523_23c904fccbbb13f5876e24f18a37aeb4_rle_crop_3770107755_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/d779ec7431af9ab20a36b0eed733e149_18691292.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/b807ef5222279f4d800b594025125f71_36442780.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/a0ebd7f3bb7ce5a099b7d817425de45f_25798772.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/78f6736300e0b14fed6c6f613a873f23_16560286.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/0bb7c23e6a2f4d3b054432f224b04327_14058016.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/e1429e1ccae6c2f7113562126f14e0e1_1813713.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/765d8062c7548f03b83d3c71ed5532e7_73397237.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/1bd6a2910b5e202ab173c2752fa53a26_22440460.png change filename to text .imagette224381321745588460/ imagette224381321745588460/1745588352_2059415_1353777608_98ab54dc4bb672921b00c3938ebe4a0b_rle_crop_3770107493_0.png.png imagette224381321745588460/1745588412_2060121_1353777523_23c904fccbbb13f5876e24f18a37aeb4_rle_crop_3770107755_0.png.png imagette224381321745588460/1745588261_1978823_1353775764_809779b4e13782b8d5314f5ad5aa282c_rle_crop_3770107207_0.png.png imagette224381321745588460/1745588171_2057826_1353775886_eaa4abbe1e58c71ee19575eaea05fa3b_rle_crop_3770105888_0.png.png imagette224381321745588460/1745588261_1978823_1353775759_c2ea2e0d4a9a454a464e4a92c09c7969_rle_crop_3770107240_0.png.png imagette224381321745588460/1745588381_1981818_1353777637_1ae734439a637061e244d10506c35b2c_rle_crop_3770107658_0.png.png imagette224381321745588460/1745588261_1978823_1353775759_c2ea2e0d4a9a454a464e4a92c09c7969_rle_crop_3770107237_0.png.png imagette224381321745588460/1745588261_1978823_1353775759_c2ea2e0d4a9a454a464e4a92c09c7969_rle_crop_3770107238_0.png.png imagette224381321745588460/1745588233_2058396_1353776845_073b7115f42998f8f780587334406b0d_rle_crop_3770106696_0.png.png imagette224381341745588461/ wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/ce3c27a2f42e40959df89f36042cffcb_56734246.png imagette224381321745588460 22438134 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=22438134 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224381341745588461 22438135 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=22438135 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353777118: '1745588111_2057283_1353775548_f9b48e369bd65a3e1df482488a17ade3_rle_crop_3770105548_0.png', 1353777900: '1745588261_1978823_1353775765_b1d096ccbea49e18eac67c511b6c131c_rle_crop_3770107201_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/6b50249cfa086cb9c9a8e25b4c46b8ad_26217051.png change filename to text .imagette224381351745588461/ imagette224381351745588461/1745588111_2057283_1353775548_f9b48e369bd65a3e1df482488a17ade3_rle_crop_3770105548_0.png.png imagette224381351745588461/1745588261_1978823_1353775765_b1d096ccbea49e18eac67c511b6c131c_rle_crop_3770107201_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/e9792080c5508700df1185c969625729_6194788.png imagette224381351745588461 22438138 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=22438138 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353777739: '1745588233_2058396_1353776817_62ddb09291f9812f2bdaf461911fda69_rle_crop_3770106709_0.png'} change filename to text .imagette224381381745588461/ imagette224381381745588461/1745588233_2058396_1353776817_62ddb09291f9812f2bdaf461911fda69_rle_crop_3770106709_0.png.png imagette224381391745588461/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/0d890c4dbff5bf4b19feea5935029652_33873691.png imagette224381381745588461 22438139 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=22438139 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224381391745588461 22438141 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=22438141 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353777924: '1745588261_1978823_1353775765_b1d096ccbea49e18eac67c511b6c131c_rle_crop_3770107202_0.png', 1353777926: '1745588261_1978823_1353775764_809779b4e13782b8d5314f5ad5aa282c_rle_crop_3770107214_0.png', 1353777928: '1745588261_1978823_1353775759_c2ea2e0d4a9a454a464e4a92c09c7969_rle_crop_3770107241_0.png', 1353778343: '1745588352_2059415_1353777608_98ab54dc4bb672921b00c3938ebe4a0b_rle_crop_3770107491_0.png', 1353778379: '1745588381_1981818_1353777637_1ae734439a637061e244d10506c35b2c_rle_crop_3770107656_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/be4120e68bf35fcd8977e1c22e022dbb_82557978.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/2b190fe75a2e8bc435f204e4d0047bf4_5954727.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/48d024ede8d434762b8653ddd074b989_35895216.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/ddafbf7edd0d4aebb6c9e471234c2f1b_73163059.png change filename to text .imagette224381411745588461/ imagette224381411745588461/1745588261_1978823_1353775764_809779b4e13782b8d5314f5ad5aa282c_rle_crop_3770107214_0.png.png imagette224381411745588461/1745588261_1978823_1353775765_b1d096ccbea49e18eac67c511b6c131c_rle_crop_3770107202_0.png.png imagette224381411745588461/1745588261_1978823_1353775759_c2ea2e0d4a9a454a464e4a92c09c7969_rle_crop_3770107241_0.png.png imagette224381411745588461/1745588352_2059415_1353777608_98ab54dc4bb672921b00c3938ebe4a0b_rle_crop_3770107491_0.png.png imagette224381411745588461/1745588381_1981818_1353777637_1ae734439a637061e244d10506c35b2c_rle_crop_3770107656_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/031d9ef7a529ca0d23b49f5192fe128f_42535362.png imagette224381411745588461 22438133 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=22438133 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353777108: '1745588111_2057283_1353775514_3509831dbe20ca351028311f3ff26074_rle_crop_3770105557_0.png', 1353777109: '1745588111_2057283_1353775514_3509831dbe20ca351028311f3ff26074_rle_crop_3770105560_0.png', 1353777588: '1745588171_2057826_1353775884_95c3a911f8a2c73c83ea5ecc643130e7_rle_crop_3770105907_0.png', 1353777744: '1745588233_2058396_1353776926_0a849b2a0f3e0c5f4bbc5618660e7bf3_rle_crop_3770106649_0.png', 1353777745: '1745588233_2058396_1353776845_073b7115f42998f8f780587334406b0d_rle_crop_3770106700_0.png', 1353777746: '1745588233_2058396_1353776845_073b7115f42998f8f780587334406b0d_rle_crop_3770106698_0.png', 1353777747: '1745588233_2058396_1353776817_62ddb09291f9812f2bdaf461911fda69_rle_crop_3770106714_0.png', 1353777748: '1745588233_2058396_1353776788_4d331a11980372c097a50192db5ff4ab_rle_crop_3770107017_0.png', 1353777891: '1745588261_1978823_1353775762_9872e50cdba6e9222883f960fb920bbc_rle_crop_3770107228_0.png', 1353777893: '1745588261_1978823_1353775762_9872e50cdba6e9222883f960fb920bbc_rle_crop_3770107230_0.png', 1353778341: '1745588352_2059415_1353777608_98ab54dc4bb672921b00c3938ebe4a0b_rle_crop_3770107494_0.png', 1353778342: '1745588352_2059415_1353777600_e632e57fcbd3e75ee586b17cd4765ef0_rle_crop_3770107503_0.png', 1353778376: '1745588381_1981818_1353777505_1ffedb16a4ff6539449d859c376c8b1d_rle_crop_3770107676_0.png', 1353778377: '1745588381_1981818_1353777474_b4edf9039387abba3b4170f54fda67dd_rle_crop_3770107684_0.png', 1353778395: '1745588412_2060121_1353777523_23c904fccbbb13f5876e24f18a37aeb4_rle_crop_3770107764_0.png', 1353778396: '1745588412_2060121_1353777523_23c904fccbbb13f5876e24f18a37aeb4_rle_crop_3770107762_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/b17005389812cf0c94688cbb28cae5cd_68801592.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/2512c8110c50c544136bb44a3b7a20b5_23680093.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/4fb188239cd437a493e0492cc7c53866_30352342.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/1bd42a1ffc45f2c2a4a7315b22e32d17_30438467.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/5117db02eb8e179f18ecae0e03601674_89150125.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/c1057c58da539bf2a6c7fb4cad0f9249_35855877.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/00760d83bd36ccd423674d870d44f1fa_1610563.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/cbfcf323d05f42c41b39b0c4ad5b3d97_93294267.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/7d3730b052dc971a4d25947f6bbd2c0e_94986936.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/c3c62cf9d326358c9f30e6e1cbb39e60_71394785.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/74a973e05a58c294f79dbd0711968cad_81551062.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/360c07d905d23c323561e9b768470653_86411930.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/16710ffb0459b0081a6b9ddb5a87f1a2_28113350.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/615f6e74b256e1008a8dbd90449e3600_93219282.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/6bc04cc4d6b333bd17dc8cc36bb52842_4543143.png change filename to text .imagette224381331745588461/ imagette224381331745588461/1745588233_2058396_1353776817_62ddb09291f9812f2bdaf461911fda69_rle_crop_3770106714_0.png.png imagette224381331745588461/1745588233_2058396_1353776788_4d331a11980372c097a50192db5ff4ab_rle_crop_3770107017_0.png.png imagette224381331745588461/1745588412_2060121_1353777523_23c904fccbbb13f5876e24f18a37aeb4_rle_crop_3770107762_0.png.png imagette224381331745588461/1745588111_2057283_1353775514_3509831dbe20ca351028311f3ff26074_rle_crop_3770105557_0.png.png imagette224381331745588461/1745588111_2057283_1353775514_3509831dbe20ca351028311f3ff26074_rle_crop_3770105560_0.png.png imagette224381331745588461/1745588381_1981818_1353777505_1ffedb16a4ff6539449d859c376c8b1d_rle_crop_3770107676_0.png.png imagette224381331745588461/1745588352_2059415_1353777600_e632e57fcbd3e75ee586b17cd4765ef0_rle_crop_3770107503_0.png.png imagette224381331745588461/1745588261_1978823_1353775762_9872e50cdba6e9222883f960fb920bbc_rle_crop_3770107230_0.png.png imagette224381331745588461/1745588261_1978823_1353775762_9872e50cdba6e9222883f960fb920bbc_rle_crop_3770107228_0.png.png imagette224381331745588461/1745588171_2057826_1353775884_95c3a911f8a2c73c83ea5ecc643130e7_rle_crop_3770105907_0.png.png imagette224381331745588461/1745588233_2058396_1353776845_073b7115f42998f8f780587334406b0d_rle_crop_3770106698_0.png.png imagette224381331745588461/1745588233_2058396_1353776845_073b7115f42998f8f780587334406b0d_rle_crop_3770106700_0.png.png imagette224381331745588461/1745588352_2059415_1353777608_98ab54dc4bb672921b00c3938ebe4a0b_rle_crop_3770107494_0.png.png imagette224381331745588461/1745588381_1981818_1353777474_b4edf9039387abba3b4170f54fda67dd_rle_crop_3770107684_0.png.png imagette224381331745588461/1745588233_2058396_1353776926_0a849b2a0f3e0c5f4bbc5618660e7bf3_rle_crop_3770106649_0.png.png imagette224381331745588461/1745588412_2060121_1353777523_23c904fccbbb13f5876e24f18a37aeb4_rle_crop_3770107764_0.png.png wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/b81b94fbe45faeda265218380add5251_60823347.png imagette224381331745588461 22438136 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=22438136 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353777101: '1745588111_2057283_1353775548_f9b48e369bd65a3e1df482488a17ade3_rle_crop_3770105541_0.png', 1353777408: '1745588143_1975368_1353776116_14689fd57aa436e1736143c8a41a4556_rle_crop_3770105634_0.png', 1353777584: '1745588171_2057826_1353776160_30cebcd86f74a659785b78f672a6e8b0_rle_crop_3770105858_0.png', 1353777585: '1745588171_2057826_1353775884_95c3a911f8a2c73c83ea5ecc643130e7_rle_crop_3770105901_0.png', 1353777586: '1745588171_2057826_1353775882_bb197923cc31e340ab6ef3882ab00c55_rle_crop_3770105917_0.png', 1353777853: '1745588261_1978823_1353775764_809779b4e13782b8d5314f5ad5aa282c_rle_crop_3770107213_0.png', 1353777855: '1745588261_1978823_1353775764_809779b4e13782b8d5314f5ad5aa282c_rle_crop_3770107215_0.png', 1353777857: '1745588261_1978823_1353775762_9872e50cdba6e9222883f960fb920bbc_rle_crop_3770107223_0.png', 1353777859: '1745588261_1978823_1353775762_9872e50cdba6e9222883f960fb920bbc_rle_crop_3770107227_0.png', 1353778372: '1745588381_1981818_1353777454_88323d6b558461339cbe4f08018b1fda_rle_crop_3770107698_0.png', 1353778373: '1745588381_1981818_1353777454_88323d6b558461339cbe4f08018b1fda_rle_crop_3770107700_0.png', 1353778391: '1745588412_2060121_1353777523_23c904fccbbb13f5876e24f18a37aeb4_rle_crop_3770107763_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/87726862fbce9fac3d1f9c3a50bda1f9_57248054.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/40eaee1d0f28aeffcf46f7c1b95eac44_78193459.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/f66099a828460992a79e2b458fec99b8_85011049.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/2c65bdfc536d55258416cfb2c9c75f39_50336763.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/9480a86aa368db3f81bbb318f295c68f_11581785.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/b7ea29887aad80c7783151ad35b3aa87_5353798.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/7ddd40cb871a4e5af84f921601a61249_57051943.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/5567d52eaa2638d35a6493e8aa345153_78897418.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/7fe4130fc8a0c694a508398a1fb94965_85123882.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/93b345f60416e89d226eb5532a522fda_96930413.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/c7e4dee7431283243ab5dd3f609741aa_23784546.png change filename to text .imagette224381361745588462/ imagette224381361745588462/1745588261_1978823_1353775764_809779b4e13782b8d5314f5ad5aa282c_rle_crop_3770107215_0.png.png imagette224381361745588462/1745588111_2057283_1353775548_f9b48e369bd65a3e1df482488a17ade3_rle_crop_3770105541_0.png.png imagette224381361745588462/1745588381_1981818_1353777454_88323d6b558461339cbe4f08018b1fda_rle_crop_3770107700_0.png.png imagette224381361745588462/1745588143_1975368_1353776116_14689fd57aa436e1736143c8a41a4556_rle_crop_3770105634_0.png.png imagette224381361745588462/1745588261_1978823_1353775764_809779b4e13782b8d5314f5ad5aa282c_rle_crop_3770107213_0.png.png imagette224381361745588462/1745588381_1981818_1353777454_88323d6b558461339cbe4f08018b1fda_rle_crop_3770107698_0.png.png imagette224381361745588462/1745588171_2057826_1353775884_95c3a911f8a2c73c83ea5ecc643130e7_rle_crop_3770105901_0.png.png imagette224381361745588462/1745588412_2060121_1353777523_23c904fccbbb13f5876e24f18a37aeb4_rle_crop_3770107763_0.png.png imagette224381361745588462/1745588171_2057826_1353775882_bb197923cc31e340ab6ef3882ab00c55_rle_crop_3770105917_0.png.png imagette224381361745588462/1745588261_1978823_1353775762_9872e50cdba6e9222883f960fb920bbc_rle_crop_3770107223_0.png.png imagette224381361745588462/1745588171_2057826_1353776160_30cebcd86f74a659785b78f672a6e8b0_rle_crop_3770105858_0.png.png imagette224381361745588462/1745588261_1978823_1353775762_9872e50cdba6e9222883f960fb920bbc_rle_crop_3770107227_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/d9bda1c291408a3d9add8b1a3d5393c4_66990873.png imagette224381361745588462 22438142 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=22438142 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353777096: '1745588111_2057283_1353775548_f9b48e369bd65a3e1df482488a17ade3_rle_crop_3770105543_0.png', 1353777580: '1745588171_2057826_1353775882_bb197923cc31e340ab6ef3882ab00c55_rle_crop_3770105919_0.png', 1353777737: '1745588233_2058396_1353776926_0a849b2a0f3e0c5f4bbc5618660e7bf3_rle_crop_3770106647_0.png', 1353777738: '1745588233_2058396_1353776878_14c87b1ed774f0efefde3ade6674201c_rle_crop_3770106676_0.png', 1353777841: '1745588261_1978823_1353775764_809779b4e13782b8d5314f5ad5aa282c_rle_crop_3770107211_0.png', 1353778336: '1745588352_2059415_1353777608_98ab54dc4bb672921b00c3938ebe4a0b_rle_crop_3770107496_0.png', 1353778337: '1745588352_2059415_1353777600_e632e57fcbd3e75ee586b17cd4765ef0_rle_crop_3770107505_0.png', 1353778338: '1745588352_2059415_1353777600_e632e57fcbd3e75ee586b17cd4765ef0_rle_crop_3770107502_0.png', 1353778369: '1745588381_1981818_1353777637_1ae734439a637061e244d10506c35b2c_rle_crop_3770107662_0.png', 1353778370: '1745588381_1981818_1353777433_949fa85af265b73b1dd246c1b16323b9_rle_crop_3770107717_0.png', 1353778388: '1745588412_2060121_1353777523_23c904fccbbb13f5876e24f18a37aeb4_rle_crop_3770107760_0.png', 1353778389: '1745588412_2060121_1353777523_23c904fccbbb13f5876e24f18a37aeb4_rle_crop_3770107757_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/ddfaccc4dbb90aadb80201f8f040c1e7_45977438.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/8837c0b089465063afad248d0f7be244_69111774.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/38a868e49000a4087f198b23360b3b8c_90155709.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/cc03e87ff9f1bc94e1d241d364a8cdd3_58411426.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/fefac55d17c155c83685fbe1a9e1b966_48559334.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/23e9f654adb172a9a364e6527b2a7a58_88719278.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/734062ef4bebd0fa210d2794be5a5deb_46350474.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/c6255ffceb2639c99cfbe31e2ece7130_11233103.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/e7a34a432af55d3c020b4641fdaa6a93_1219823.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/c5299bd5a2c94c4cdfb803b44407ee74_62827306.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/451256fa6b1d22f900fec0c48ee2c328_20778304.png change filename to text .imagette224381421745588463/ imagette224381421745588463/1745588381_1981818_1353777637_1ae734439a637061e244d10506c35b2c_rle_crop_3770107662_0.png.png imagette224381421745588463/1745588261_1978823_1353775764_809779b4e13782b8d5314f5ad5aa282c_rle_crop_3770107211_0.png.png imagette224381421745588463/1745588352_2059415_1353777608_98ab54dc4bb672921b00c3938ebe4a0b_rle_crop_3770107496_0.png.png imagette224381421745588463/1745588171_2057826_1353775882_bb197923cc31e340ab6ef3882ab00c55_rle_crop_3770105919_0.png.png imagette224381421745588463/1745588233_2058396_1353776878_14c87b1ed774f0efefde3ade6674201c_rle_crop_3770106676_0.png.png imagette224381421745588463/1745588352_2059415_1353777600_e632e57fcbd3e75ee586b17cd4765ef0_rle_crop_3770107505_0.png.png imagette224381421745588463/1745588412_2060121_1353777523_23c904fccbbb13f5876e24f18a37aeb4_rle_crop_3770107757_0.png.png imagette224381421745588463/1745588233_2058396_1353776926_0a849b2a0f3e0c5f4bbc5618660e7bf3_rle_crop_3770106647_0.png.png imagette224381421745588463/1745588352_2059415_1353777600_e632e57fcbd3e75ee586b17cd4765ef0_rle_crop_3770107502_0.png.png imagette224381421745588463/1745588111_2057283_1353775548_f9b48e369bd65a3e1df482488a17ade3_rle_crop_3770105543_0.png.png imagette224381421745588463/1745588381_1981818_1353777433_949fa85af265b73b1dd246c1b16323b9_rle_crop_3770107717_0.png.png imagette224381421745588463/1745588412_2060121_1353777523_23c904fccbbb13f5876e24f18a37aeb4_rle_crop_3770107760_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/0a04b6c7c4fd78f060ba30d0f1aae42a_34635899.png imagette224381421745588463 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22438094 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22438146,22438147,22438149,22438150,22438151,22438152,22438154,22438155,22438156,22438157,22438159,22438160?tags=flou,cartonnette,Carton_brun,mal_croppe,plastique,Carton_gris,papier,autre_refus,metal,environnement,kraft,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1353778375] : ('0.04725898049015384',) no score found for photo 1353778375 We are sending mail with results at report@fotonower.com args[1353778367] : ('0.04725898049015384',) no score found for photo 1353778367 We are sending mail with results at report@fotonower.com args[1353778365] : ('0.04725898049015384',) no score found for photo 1353778365 We are sending mail with results at report@fotonower.com args[1353778360] : ('0.04725898049015384',) no score found for photo 1353778360 We are sending mail with results at report@fotonower.com args[1353778328] : ('0.04725898049015384',) no score found for photo 1353778328 We are sending mail with results at report@fotonower.com args[1353778325] : ('0.04725898049015384',) no score found for photo 1353778325 We are sending mail with results at report@fotonower.com args[1353778310] : ('0.04725898049015384',) no score found for photo 1353778310 We are sending mail with results at report@fotonower.com args[1353778295] : ('0.04725898049015384',) no score found for photo 1353778295 We are sending mail with results at report@fotonower.com args[1353778290] : ('0.04725898049015384',) no score found for photo 1353778290 We are sending mail with results at report@fotonower.com args[1353778266] : ('0.04725898049015384',) no score found for photo 1353778266 We are sending mail with results at report@fotonower.com args[1353777947] : ('0.04725898049015384',) no score found for photo 1353777947 We are sending mail with results at report@fotonower.com args[1353777914] : ('0.04725898049015384',) no score found for photo 1353777914 We are sending mail with results at report@fotonower.com args[1353777884] : ('0.04725898049015384',) no score found for photo 1353777884 We are sending mail with results at report@fotonower.com args[1353777845] : ('0.04725898049015384',) no score found for photo 1353777845 We are sending mail with results at report@fotonower.com args[1353777816] : ('0.04725898049015384',) no score found for photo 1353777816 We are sending mail with results at report@fotonower.com refus_total : 0.04725898049015384 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=22438094 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_P22438094_25-04-2025_15_41_00.pdf results_Auto_P22438094_25-04-2025_15_41_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22438094_25-04-2025_15_41_00.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','22438094','results_Auto_P22438094_25-04-2025_15_41_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22438094_25-04-2025_15_41_00.pdf','pdf','','0.28','0.04725898049015384') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22438094]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1353778375, 1353778367, 1353778365, 1353778360, 1353778328, 1353778325, 1353778310, 1353778295, 1353778290, 1353778266, 1353777947, 1353777914, 1353777884, 1353777845, 1353777816] map_info['map_portfolio_photo'] : {22438094: [1353778375, 1353778367, 1353778365, 1353778360, 1353778328, 1353778325, 1353778310, 1353778295, 1353778290, 1353778266, 1353777947, 1353777914, 1353777884, 1353777845, 1353777816, 1353777637, 1353777608, 1353777600, 1353777523, 1353777505, 1353777474, 1353777454, 1353777433, 1353776981, 1353776926, 1353776878, 1353776845, 1353776817, 1353776788, 1353776160, 1353776116, 1353776085, 1353775888, 1353775886, 1353775884, 1353775882, 1353775876, 1353775778, 1353775765, 1353775764, 1353775762, 1353775759, 1353775548, 1353775514]} final : False mtd_id 4302 list_pids : [1353778375, 1353778367, 1353778365, 1353778360, 1353778328, 1353778325, 1353778310, 1353778295, 1353778290, 1353778266, 1353777947, 1353777914, 1353777884, 1353777845, 1353777816] 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, '2762998') ('4302', '22438094', '1353778375', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353778367', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353778365', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353778360', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353778328', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353778325', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353778310', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353778295', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353778290', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353778266', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353777947', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353777914', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353777884', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353777845', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353777816', None, None, None, None, None, '2762998') 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', '22438094', '1353778375', None, None, None, None, None, '2762998'), ('4302', '22438094', '1353778367', None, None, None, None, None, '2762998'), ('4302', '22438094', '1353778365', None, None, None, None, None, '2762998'), ('4302', '22438094', '1353778360', None, None, None, None, None, '2762998'), ('4302', '22438094', '1353778328', None, None, None, None, None, '2762998'), ('4302', '22438094', '1353778325', None, None, None, None, None, '2762998'), ('4302', '22438094', '1353778310', None, None, None, None, None, '2762998'), ('4302', '22438094', '1353778295', None, None, None, None, None, '2762998'), ('4302', '22438094', '1353778290', None, None, None, None, None, '2762998'), ('4302', '22438094', '1353778266', None, None, None, None, None, '2762998'), ('4302', '22438094', '1353777947', None, None, None, None, None, '2762998'), ('4302', '22438094', '1353777914', None, None, None, None, None, '2762998'), ('4302', '22438094', '1353777884', None, None, None, None, None, '2762998'), ('4302', '22438094', '1353777845', None, None, None, None, None, '2762998'), ('4302', '22438094', '1353777816', None, None, None, None, None, '2762998')] time used for this insertion : 0.016584157943725586 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.001938581466675 time spend to save output : 0.016867399215698242 total time spend for step 4 : 5.018805980682373 step5:split_time_score Fri Apr 25 15:41:05 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['22438094'] 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 : [('22438094',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22438094) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1353778365: {'path': 'temp/1745588460_1926556_1353778365_f5c64c51f5086abc13c6ea95bea2e67e.jpg', 'extension': 'jpg'}, 1353778367: {'path': 'temp/1745588460_1926556_1353778367_dff132f3f8bc4ed264db349cfc979ddd.jpg', 'extension': 'jpg'}, 1353778375: {'path': 'temp/1745588460_1926556_1353778375_65b445c2aa5d9a6344a14cbab7039efe.jpg', 'extension': 'jpg'}, 1353777816: {'path': 'temp/1745588460_1926556_1353777816_0761ed070fc0af0ae3b946db463c0f94.jpg', 'extension': 'jpg'}, 1353777845: {'path': 'temp/1745588460_1926556_1353777845_a1004b1b2005e100c6faf8e593e18740.jpg', 'extension': 'jpg'}, 1353777884: {'path': 'temp/1745588460_1926556_1353777884_522bf71d1985309b3ed537cc01ac11e7.jpg', 'extension': 'jpg'}, 1353777914: {'path': 'temp/1745588460_1926556_1353777914_12809f4f407d35423abbe7080debf301.jpg', 'extension': 'jpg'}, 1353778310: {'path': 'temp/1745588460_1926556_1353778310_f83e12bdd3efbaabd51a66925b722742.jpg', 'extension': 'jpg'}, 1353778325: {'path': 'temp/1745588460_1926556_1353778325_e5c5538556c070c27d97469472db9b50.jpg', 'extension': 'jpg'}, 1353778328: {'path': 'temp/1745588460_1926556_1353778328_f04dd8e4c478001c724c8ce7c3ae2765.jpg', 'extension': 'jpg'}, 1353778360: {'path': 'temp/1745588460_1926556_1353778360_acd6411cc327ae5fb57e0d7bd9a4ae39.jpg', 'extension': 'jpg'}, 1353777947: {'path': 'temp/1745588460_1926556_1353777947_1f283db2da27530d2a35961cb6f2e786.jpg', 'extension': 'jpg'}, 1353778266: {'path': 'temp/1745588460_1926556_1353778266_4423e6776cdac37a3aea6ef8c3f9165b.jpg', 'extension': 'jpg'}, 1353778290: {'path': 'temp/1745588460_1926556_1353778290_a06e6ac9c9d12e165d88315c7c317fa5.jpg', 'extension': 'jpg'}, 1353778295: {'path': 'temp/1745588460_1926556_1353778295_370ecd8efdc01b0f6b380fad268949a9.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 = 22438094; (('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 = 22438094 group by h (('15', 44),) 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=22438094 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 (22438094) 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 (22438094) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 25042025 22438094 Nombre de photos uploadées : 44 / 23040 (0%) 25042025 22438094 Nombre de photos taguées (types de déchets): 0 / 44 (0%) 25042025 22438094 Nombre de photos taguées (volume) : 0 / 44 (0%) [{'photo_id': 1353775548, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/f9b48e369bd65a3e1df482488a17ade3.jpg', 'username': None, 'uploaded_at': 1745587867, 'text': 'image_25042025_15_30_03_009150m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1353775514, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/3509831dbe20ca351028311f3ff26074.jpg', 'username': None, 'uploaded_at': 1745587867, 'text': 'image_25042025_15_30_13_010141m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1353775778, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/2a93edb055eb30f7c2ffa122feaba0e2.jpg', 'username': None, 'uploaded_at': 1745587928, 'text': 'image_25042025_15_30_24_010138m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1353775765, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/b1d096ccbea49e18eac67c511b6c131c.jpg', 'username': None, 'uploaded_at': 1745587928, 'text': 'image_25042025_15_31_04_010156m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 6.4373016357421875e-06 ???????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002126932144165039 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22438094, '2025-04-25' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1747621,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.022771835327148438 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= 1747621 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1747621, 'dashboard_run_id': 1757396, 'mtr_portfolio_id': 22436117, 'dashboard_result_id': 10107093, '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_P22436117_25-04-2025_15_02_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22436135, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22436136, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22436137, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22436138, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22436139, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22436140, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22436141, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22436142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22436143, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22436144, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22436145, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22436146, 'pht': 3726}}"}, {'dashboat_entry_day': 1747621, 'dashboard_run_id': 1757396, 'mtr_portfolio_id': 22437036, 'dashboard_result_id': 10107094, '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_P22437036_25-04-2025_15_20_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22437065, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22437066, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22437067, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22437068, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22437069, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22437070, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22437071, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22437072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22437073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22437074, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22437075, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22437076, 'pht': 3726}}"}, {'dashboat_entry_day': 1747621, 'dashboard_run_id': 1757396, 'mtr_portfolio_id': 22437571, 'dashboard_result_id': 10107095, '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_P22437571_25-04-2025_15_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22437599, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22437600, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22437601, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22437602, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22437603, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22437604, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22437605, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22437606, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22437607, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22437608, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22437609, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22437610, 'pht': 3726}}"}, {'dashboat_entry_day': 1747621, 'dashboard_run_id': 1757396, 'mtr_portfolio_id': 22438094, 'dashboard_result_id': 10107096, '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_P22438094_25-04-2025_15_38_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22438131, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22438132, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22438133, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22438134, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22438135, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22438136, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22438137, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22438138, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22438139, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22438140, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22438141, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22438142, '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 = 22436117 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': 2762808, 'mtr_portfolio_id': 22436117, 'created_at': datetime.datetime(2025, 4, 25, 15, 2, 30), 'result': '0.05231415321779242', 'result_long': None, 'result_double': None}] Qualite : 0.05231415321779242 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22436117 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22436117_25-04-2025_15_02_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22436117 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_P22436117_25-04-2025_15_02_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22436135, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22436136, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22436137, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22436138, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22436139, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22436140, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22436141, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22436142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22436143, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22436144, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22436145, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22436146, 'pht': 3726}}" where mtr_portfolio_id = 22436117 and dashboard_run_id = 1757396 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`=22436117 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10107093, 0.05231415321779242, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22436117_25-04-2025_15_02_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22436135, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22436136, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22436137, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22436138, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22436139, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22436140, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22436141, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22436142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22436143, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22436144, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22436145, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22436146, '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 = 22437036 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': 2762896, 'mtr_portfolio_id': 22437036, 'created_at': datetime.datetime(2025, 4, 25, 15, 20, 59), 'result': '0.05494781440908981', 'result_long': None, 'result_double': None}] Qualite : 0.05494781440908981 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22437036 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22437036_25-04-2025_15_20_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22437036 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_P22437036_25-04-2025_15_20_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22437065, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22437066, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22437067, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22437068, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22437069, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22437070, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22437071, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22437072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22437073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22437074, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22437075, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22437076, 'pht': 3726}}" where mtr_portfolio_id = 22437036 and dashboard_run_id = 1757396 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`=22437036 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10107094, 0.05494781440908981, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22437036_25-04-2025_15_20_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22437065, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22437066, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22437067, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22437068, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22437069, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22437070, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22437071, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22437072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22437073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22437074, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22437075, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22437076, '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 = 22437571 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': 2762946, 'mtr_portfolio_id': 22437571, 'created_at': datetime.datetime(2025, 4, 25, 15, 32, 59), 'result': '0.09277997308413394', 'result_long': None, 'result_double': None}] Qualite : 0.09277997308413394 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22437571 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22437571_25-04-2025_15_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22437571 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_P22437571_25-04-2025_15_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22437599, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22437600, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22437601, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22437602, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22437603, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22437604, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22437605, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22437606, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22437607, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22437608, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22437609, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22437610, 'pht': 3726}}" where mtr_portfolio_id = 22437571 and dashboard_run_id = 1757396 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`=22437571 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10107095, 0.09277997308413394, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22437571_25-04-2025_15_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22437599, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22437600, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22437601, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22437602, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22437603, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22437604, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22437605, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22437606, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22437607, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22437608, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22437609, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22437610, '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 = 22438094 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': 2762998, 'mtr_portfolio_id': 22438094, 'created_at': datetime.datetime(2025, 4, 25, 15, 40, 59), 'result': '0.04725898049015384', 'result_long': None, 'result_double': None}] Qualite : 0.04725898049015384 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22438094 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22438094_25-04-2025_15_41_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22438094 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_P22438094_25-04-2025_15_41_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22438131, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22438132, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22438133, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22438134, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22438135, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22438136, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22438137, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22438138, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22438139, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22438140, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22438141, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22438142, 'pht': 3726}}" where mtr_portfolio_id = 22438094 and dashboard_run_id = 1757396 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`=22438094 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10107096, 0.04725898049015384, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22438094_25-04-2025_15_41_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22438131, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22438132, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22438133, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22438134, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22438135, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22438136, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22438137, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22438138, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22438139, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22438140, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22438141, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22438142, '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 (22436117,22437036,22437571,22438094) result : ((1353755601,), (1353755729,), (1353755784,), (1353755879,), (1353755943,), (1353756308,), (1353756336,), (1353756366,), (1353756403,), (1353756656,), (1353756663,), (1353756672,), (1353756717,), (1353756749,), (1353756779,), (1353757179,), (1353757204,), (1353757234,), (1353757263,), (1353757307,), (1353758061,), (1353758165,), (1353758280,), (1353758380,), (1353758488,), (1353758601,), (1353759173,), (1353759249,), (1353759290,), (1353759776,), (1353759800,), (1353759820,), (1353759835,), (1353759862,), (1353759889,), (1353760297,), (1353760330,), (1353760636,), (1353760707,), (1353760769,), (1353760813,), (1353760957,), (1353760959,), (1353760961,), (1353761561,), (1353761620,), (1353761674,), (1353761729,), (1353761786,), (1353761888,), (1353762187,), (1353762226,), (1353762277,), (1353762325,), (1353762830,), (1353762860,), (1353762890,), (1353762923,), (1353762978,), (1353763519,), (1353763575,), (1353763628,), (1353763683,), (1353763734,), (1353764515,), (1353766126,), (1353765945,), (1353766033,), (1353767251,), (1353767338,), (1353767419,), (1353767504,), (1353767659,), (1353767872,), (1353768480,), (1353768526,), (1353769124,), (1353769165,), (1353769214,), (1353769242,), (1353769260,), (1353769782,), (1353769837,), (1353769887,), (1353769937,), (1353769988,), (1353770038,), (1353770523,), (1353770570,), (1353770629,), (1353770680,), (1353770944,), (1353770948,), (1353770960,), (1353770985,), (1353771018,), (1353771054,), (1353771245,), (1353771249,), (1353771273,), (1353771359,), (1353771364,), (1353771376,), (1353771379,), (1353771385,), (1353771424,), (1353771428,), (1353771432,), (1353771444,), (1353771453,), (1353771457,), (1353771482,), (1353771486,), (1353771489,), (1353771631,), (1353771644,), (1353771647,), (1353771648,), (1353771675,), (1353771684,), (1353771786,), (1353771798,), (1353771803,), (1353771806,), (1353771809,), (1353771812,), (1353771958,), (1353771962,), (1353772002,), (1353772007,), (1353772011,), (1353772014,), (1353772019,), (1353772023,), (1353772063,), (1353772053,), (1353772055,), (1353772057,), (1353772058,), (1353772126,), (1353772129,), (1353772133,), (1353772137,), (1353772182,), (1353772184,), (1353772784,), (1353772793,), (1353773231,), (1353773396,), (1353773405,), (1353773414,), (1353773553,), (1353773563,), (1353773573,), (1353773581,), (1353773594,), (1353773717,), (1353773728,), (1353773737,), (1353773744,), (1353773757,), (1353774021,), (1353774048,), (1353774076,), (1353774431,), (1353774469,), (1353774500,), (1353774533,), (1353774568,), (1353774620,), (1353774950,), (1353774984,), (1353775025,), (1353775063,), (1353775601,), (1353775514,), (1353775548,), (1353775759,), (1353775762,), (1353775764,), (1353775765,), (1353775778,), (1353775876,), (1353775882,), (1353775884,), (1353775886,), (1353775888,), (1353776085,), (1353776116,), (1353776160,), (1353776788,), (1353776817,), (1353776845,), (1353776878,), (1353776926,), (1353776981,), (1353777433,), (1353777454,), (1353777474,), (1353777505,), (1353777523,), (1353777600,), (1353777608,), (1353777637,), (1353777816,), (1353777845,), (1353777884,), (1353777914,), (1353777947,), (1353778266,), (1353778290,), (1353778295,), (1353778310,), (1353778325,), (1353778328,), (1353778360,), (1353778365,), (1353778367,), (1353778375,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'25042025': {'nb_upload': 44, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22438094]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1353778375, 1353778367, 1353778365, 1353778360, 1353778328, 1353778325, 1353778310, 1353778295, 1353778290, 1353778266, 1353777947, 1353777914, 1353777884, 1353777845, 1353777816] map_info['map_portfolio_photo'] : {22438094: [1353778375, 1353778367, 1353778365, 1353778360, 1353778328, 1353778325, 1353778310, 1353778295, 1353778290, 1353778266, 1353777947, 1353777914, 1353777884, 1353777845, 1353777816, 1353777637, 1353777608, 1353777600, 1353777523, 1353777505, 1353777474, 1353777454, 1353777433, 1353776981, 1353776926, 1353776878, 1353776845, 1353776817, 1353776788, 1353776160, 1353776116, 1353776085, 1353775888, 1353775886, 1353775884, 1353775882, 1353775876, 1353775778, 1353775765, 1353775764, 1353775762, 1353775759, 1353775548, 1353775514]} final : True mtd_id 4302 list_pids : [1353778375, 1353778367, 1353778365, 1353778360, 1353778328, 1353778325, 1353778310, 1353778295, 1353778290, 1353778266, 1353777947, 1353777914, 1353777884, 1353777845, 1353777816] Looping around the photos to save general results len do output : 1 /22438094Didn'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, '2762998') ('4302', '22438094', '1353778375', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353778367', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353778365', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353778360', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353778328', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353778325', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353778310', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353778295', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353778290', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353778266', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353777947', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353777914', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353777884', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353777845', None, None, None, None, None, '2762998') ('4302', None, None, None, None, None, None, None, '2762998') ('4302', '22438094', '1353777816', None, None, None, None, None, '2762998') 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, '22438094', 'None', None, None, None, None, '2762998'), ('4302', '22438094', '1353778375', None, None, None, None, None, '2762998'), ('4302', '22438094', '1353778367', None, None, None, None, None, '2762998'), ('4302', '22438094', '1353778365', None, None, None, None, None, '2762998'), ('4302', '22438094', '1353778360', None, None, None, None, None, '2762998'), ('4302', '22438094', '1353778328', None, None, None, None, None, '2762998'), ('4302', '22438094', '1353778325', None, None, None, None, None, '2762998'), ('4302', '22438094', '1353778310', None, None, None, None, None, '2762998'), ('4302', '22438094', '1353778295', None, None, None, None, None, '2762998'), ('4302', '22438094', '1353778290', None, None, None, None, None, '2762998'), ('4302', '22438094', '1353778266', None, None, None, None, None, '2762998'), ('4302', '22438094', '1353777947', None, None, None, None, None, '2762998'), ('4302', '22438094', '1353777914', None, None, None, None, None, '2762998'), ('4302', '22438094', '1353777884', None, None, None, None, None, '2762998'), ('4302', '22438094', '1353777845', None, None, None, None, None, '2762998'), ('4302', '22438094', '1353777816', None, None, None, None, None, '2762998')] time used for this insertion : 0.014905691146850586 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.33176636695861816 time spend to save output : 0.015186548233032227 total time spend for step 5 : 0.3469529151916504 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 (2762998) 2.43user 2.31system 0:09.77elapsed 48%CPU (0avgtext+0avgdata 159232maxresident)k 640inputs+16744outputs (12major+76127minor)pagefaults 0swaps