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 : 3339294 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 (2724640) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2724640) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22061893 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2724640'] with mtr_portfolio_ids : ['22061893'] and first list_photo_ids : [] new path : /proc/3339294/ Name: python3 Umask: 0002 State: R (running) Tgid: 3339294 Ngid: 0 Pid: 3339294 PPid: 3339293 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3339294 NSpid: 3339294 NSpgid: 3336780 NSsid: 3336780 VmPeak: 1106828 kB VmSize: 1106828 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99020 kB VmRSS: 99020 kB RssAnon: 59800 kB RssFile: 39220 kB RssShmem: 0 kB VmData: 865576 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 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: 52 nonvoluntary_ctxt_switches: 394 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3339294', 'Ngid': '0', 'Pid': '3339294', 'PPid': '3339293', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3339294', 'NSpid': '3339294', 'NSpgid': '3336780', 'NSsid': '3336780', 'VmPeak': '1106828 kB', 'VmSize': '1106828 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99020 kB', 'VmRSS': '99020 kB', 'RssAnon': '59800 kB', 'RssFile': '39220 kB', 'RssShmem': '0 kB', 'VmData': '865576 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 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': '52', 'nonvoluntary_ctxt_switches': '394'} ('datou_batch_current', '3339294', '1106828', '0', '1106828', '865576', '99020', b'', 'marlene', '2724640') 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 (22061893) 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 (2724640 ) ) 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 (22061893) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1350170873, 'portfolio_id': 22061893}, {'photo_id': 1350170869, 'portfolio_id': 22061893}, {'photo_id': 1350170864, 'portfolio_id': 22061893}, {'photo_id': 1350170835, 'portfolio_id': 22061893}, {'photo_id': 1350170801, 'portfolio_id': 22061893}, {'photo_id': 1350170797, 'portfolio_id': 22061893}, {'photo_id': 1350170795, 'portfolio_id': 22061893}, {'photo_id': 1350170792, 'portfolio_id': 22061893}, {'photo_id': 1350170789, 'portfolio_id': 22061893}, {'photo_id': 1350170784, 'portfolio_id': 22061893}, {'photo_id': 1350170613, 'portfolio_id': 22061893}, {'photo_id': 1350170609, 'portfolio_id': 22061893}, {'photo_id': 1350170604, 'portfolio_id': 22061893}, {'photo_id': 1350170599, 'portfolio_id': 22061893}, {'photo_id': 1350170568, 'portfolio_id': 22061893}, {'photo_id': 1350170565, 'portfolio_id': 22061893}, {'photo_id': 1350170562, 'portfolio_id': 22061893}, {'photo_id': 1350170559, 'portfolio_id': 22061893}, {'photo_id': 1350170554, 'portfolio_id': 22061893}, {'photo_id': 1350170500, 'portfolio_id': 22061893}, {'photo_id': 1350170480, 'portfolio_id': 22061893}, {'photo_id': 1350170477, 'portfolio_id': 22061893}, {'photo_id': 1350170471, 'portfolio_id': 22061893}, {'photo_id': 1350170463, 'portfolio_id': 22061893}, {'photo_id': 1350170404, 'portfolio_id': 22061893}, {'photo_id': 1350170402, 'portfolio_id': 22061893}, {'photo_id': 1350170399, 'portfolio_id': 22061893}, {'photo_id': 1350170396, 'portfolio_id': 22061893}, {'photo_id': 1350170354, 'portfolio_id': 22061893}, {'photo_id': 1350170349, 'portfolio_id': 22061893}, {'photo_id': 1350170336, 'portfolio_id': 22061893}, {'photo_id': 1350170325, 'portfolio_id': 22061893}, {'photo_id': 1350170320, 'portfolio_id': 22061893}, {'photo_id': 1350170315, 'portfolio_id': 22061893}, {'photo_id': 1350170272, 'portfolio_id': 22061893}, {'photo_id': 1350170270, 'portfolio_id': 22061893}, {'photo_id': 1350170268, 'portfolio_id': 22061893}, {'photo_id': 1350170266, 'portfolio_id': 22061893}, {'photo_id': 1350170264, 'portfolio_id': 22061893}, {'photo_id': 1350170228, 'portfolio_id': 22061893}, {'photo_id': 1350170225, 'portfolio_id': 22061893}, {'photo_id': 1350170222, 'portfolio_id': 22061893}, {'photo_id': 1350170220, 'portfolio_id': 22061893}, {'photo_id': 1350170215, 'portfolio_id': 22061893}] map_portfolio_id_photo_id: {22061893: [1350170873, 1350170869, 1350170864, 1350170835, 1350170801, 1350170797, 1350170795, 1350170792, 1350170789, 1350170784, 1350170613, 1350170609, 1350170604, 1350170599, 1350170568, 1350170565, 1350170562, 1350170559, 1350170554, 1350170500, 1350170480, 1350170477, 1350170471, 1350170463, 1350170404, 1350170402, 1350170399, 1350170396, 1350170354, 1350170349, 1350170336, 1350170325, 1350170320, 1350170315, 1350170272, 1350170270, 1350170268, 1350170266, 1350170264, 1350170228, 1350170225, 1350170222, 1350170220, 1350170215]} ##### 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.013870000839233398 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Apr 16 06:54: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 (22061893) 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 : 22061893 get user id for portfolio 22061893 get sub ptf for main ptf 22061893, type 3726 and hashtags ['Carton_brun', 'Teint_Dans_La_Masse', 'Carton_gris', 'plastique', 'flou', 'mal_croppe', 'kraft', 'papier', 'metal', 'autre_refus', 'environnement', 'cartonnette'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22061893 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','Teint_Dans_La_Masse','Carton_gris','plastique','flou','mal_croppe','kraft','papier','metal','autre_refus','environnement','cartonnette')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22061893 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','Teint_Dans_La_Masse','Carton_gris','plastique','flou','mal_croppe','kraft','papier','metal','autre_refus','environnement','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 22061893, 'sub_port_id': 22061932, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14551314, 'last_updated_at': datetime.datetime(2025, 4, 16, 6, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 6, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 6, 49, 2)}, 'Carton_brun': {'main_port_id': 22061893, 'sub_port_id': 22061933, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14551315, 'last_updated_at': datetime.datetime(2025, 4, 16, 6, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 6, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 6, 49, 2)}, 'autre_refus': {'main_port_id': 22061893, 'sub_port_id': 22061934, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14551316, 'last_updated_at': datetime.datetime(2025, 4, 16, 6, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 6, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 6, 49, 2)}, 'environnement': {'main_port_id': 22061893, 'sub_port_id': 22061935, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14551317, 'last_updated_at': datetime.datetime(2025, 4, 16, 6, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 6, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 6, 49, 2)}, 'Carton_gris': {'main_port_id': 22061893, 'sub_port_id': 22061936, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14551318, 'last_updated_at': datetime.datetime(2025, 4, 16, 6, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 6, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 6, 49, 2)}, 'cartonnette': {'main_port_id': 22061893, 'sub_port_id': 22061937, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14551319, 'last_updated_at': datetime.datetime(2025, 4, 16, 6, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 6, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 6, 49, 2)}, 'kraft': {'main_port_id': 22061893, 'sub_port_id': 22061938, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14551320, 'last_updated_at': datetime.datetime(2025, 4, 16, 6, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 6, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 6, 49, 2)}, 'flou': {'main_port_id': 22061893, 'sub_port_id': 22061939, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14551321, 'last_updated_at': datetime.datetime(2025, 4, 16, 6, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 6, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 6, 49, 2)}, 'metal': {'main_port_id': 22061893, 'sub_port_id': 22061940, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14551322, 'last_updated_at': datetime.datetime(2025, 4, 16, 6, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 6, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 6, 49, 2)}, 'papier': {'main_port_id': 22061893, 'sub_port_id': 22061941, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14551323, 'last_updated_at': datetime.datetime(2025, 4, 16, 6, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 6, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 6, 49, 2)}, 'plastique': {'main_port_id': 22061893, 'sub_port_id': 22061942, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14551324, 'last_updated_at': datetime.datetime(2025, 4, 16, 6, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 6, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 6, 49, 2)}, 'mal_croppe': {'main_port_id': 22061893, 'sub_port_id': 22061943, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14551325, 'last_updated_at': datetime.datetime(2025, 4, 16, 6, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 6, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 6, 49, 2)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22061932 , 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=22061893 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 (22061932) result : ((1350170815,), (1350170840,), (1350170841,), (1350170843,), (1350170844,), (1350170845,), (1350170890,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22061893) result : ((1350170215,), (1350170220,), (1350170222,), (1350170225,), (1350170228,), (1350170264,), (1350170266,), (1350170268,), (1350170270,), (1350170272,), (1350170315,), (1350170320,), (1350170325,), (1350170336,), (1350170349,), (1350170354,), (1350170396,), (1350170399,), (1350170402,), (1350170404,), (1350170463,), (1350170471,), (1350170477,), (1350170480,), (1350170500,), (1350170554,), (1350170559,), (1350170562,), (1350170565,), (1350170568,), (1350170599,), (1350170604,), (1350170609,), (1350170613,), (1350170784,), (1350170789,), (1350170792,), (1350170795,), (1350170797,), (1350170801,), (1350170835,), (1350170864,), (1350170869,), (1350170873,)) 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 (1350170500) 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 22061933 , 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=22061893 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 (22061933) result : ((1350170534,), (1350170535,), (1350170536,), (1350170537,), (1350170824,), (1350170825,), (1350170855,), (1350170856,), (1350170898,), (1350170899,), (1350170900,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22061893) result : ((1350170215,), (1350170220,), (1350170222,), (1350170225,), (1350170228,), (1350170264,), (1350170266,), (1350170268,), (1350170270,), (1350170272,), (1350170315,), (1350170320,), (1350170325,), (1350170336,), (1350170349,), (1350170354,), (1350170396,), (1350170399,), (1350170402,), (1350170404,), (1350170463,), (1350170471,), (1350170477,), (1350170480,), (1350170500,), (1350170554,), (1350170559,), (1350170562,), (1350170565,), (1350170568,), (1350170599,), (1350170604,), (1350170609,), (1350170613,), (1350170784,), (1350170789,), (1350170792,), (1350170795,), (1350170797,), (1350170801,), (1350170835,), (1350170864,), (1350170869,), (1350170873,)) 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 (1350170500) 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 22061934 , 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=22061893 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 (22061934) result : ((1350170818,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22061893) result : ((1350170215,), (1350170220,), (1350170222,), (1350170225,), (1350170228,), (1350170264,), (1350170266,), (1350170268,), (1350170270,), (1350170272,), (1350170315,), (1350170320,), (1350170325,), (1350170336,), (1350170349,), (1350170354,), (1350170396,), (1350170399,), (1350170402,), (1350170404,), (1350170463,), (1350170471,), (1350170477,), (1350170480,), (1350170500,), (1350170554,), (1350170559,), (1350170562,), (1350170565,), (1350170568,), (1350170599,), (1350170604,), (1350170609,), (1350170613,), (1350170784,), (1350170789,), (1350170792,), (1350170795,), (1350170797,), (1350170801,), (1350170835,), (1350170864,), (1350170869,), (1350170873,)) 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 (1350170500) 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 22061935 , 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=22061893 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 (22061935) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22061893) result : ((1350170215,), (1350170220,), (1350170222,), (1350170225,), (1350170228,), (1350170264,), (1350170266,), (1350170268,), (1350170270,), (1350170272,), (1350170315,), (1350170320,), (1350170325,), (1350170336,), (1350170349,), (1350170354,), (1350170396,), (1350170399,), (1350170402,), (1350170404,), (1350170463,), (1350170471,), (1350170477,), (1350170480,), (1350170500,), (1350170554,), (1350170559,), (1350170562,), (1350170565,), (1350170568,), (1350170599,), (1350170604,), (1350170609,), (1350170613,), (1350170784,), (1350170789,), (1350170792,), (1350170795,), (1350170797,), (1350170801,), (1350170835,), (1350170864,), (1350170869,), (1350170873,)) 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 (1350170500) 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 22061936 , 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=22061893 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 (22061936) result : ((1350170820,), (1350170849,), (1350170850,), (1350170851,), (1350170852,), (1350170853,), (1350170892,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22061893) result : ((1350170215,), (1350170220,), (1350170222,), (1350170225,), (1350170228,), (1350170264,), (1350170266,), (1350170268,), (1350170270,), (1350170272,), (1350170315,), (1350170320,), (1350170325,), (1350170336,), (1350170349,), (1350170354,), (1350170396,), (1350170399,), (1350170402,), (1350170404,), (1350170463,), (1350170471,), (1350170477,), (1350170480,), (1350170500,), (1350170554,), (1350170559,), (1350170562,), (1350170565,), (1350170568,), (1350170599,), (1350170604,), (1350170609,), (1350170613,), (1350170784,), (1350170789,), (1350170792,), (1350170795,), (1350170797,), (1350170801,), (1350170835,), (1350170864,), (1350170869,), (1350170873,)) 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 (1350170500) 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 22061937 , 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=22061893 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 (22061937) result : ((1350170532,), (1350170533,), (1350170582,), (1350170583,), (1350170821,), (1350170822,), (1350170893,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22061893) result : ((1350170215,), (1350170220,), (1350170222,), (1350170225,), (1350170228,), (1350170264,), (1350170266,), (1350170268,), (1350170270,), (1350170272,), (1350170315,), (1350170320,), (1350170325,), (1350170336,), (1350170349,), (1350170354,), (1350170396,), (1350170399,), (1350170402,), (1350170404,), (1350170463,), (1350170471,), (1350170477,), (1350170480,), (1350170500,), (1350170554,), (1350170559,), (1350170562,), (1350170565,), (1350170568,), (1350170599,), (1350170604,), (1350170609,), (1350170613,), (1350170784,), (1350170789,), (1350170792,), (1350170795,), (1350170797,), (1350170801,), (1350170835,), (1350170864,), (1350170869,), (1350170873,)) 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 (1350170500) 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 22061938 , 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=22061893 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 (22061938) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22061893) result : ((1350170215,), (1350170220,), (1350170222,), (1350170225,), (1350170228,), (1350170264,), (1350170266,), (1350170268,), (1350170270,), (1350170272,), (1350170315,), (1350170320,), (1350170325,), (1350170336,), (1350170349,), (1350170354,), (1350170396,), (1350170399,), (1350170402,), (1350170404,), (1350170463,), (1350170471,), (1350170477,), (1350170480,), (1350170500,), (1350170554,), (1350170559,), (1350170562,), (1350170565,), (1350170568,), (1350170599,), (1350170604,), (1350170609,), (1350170613,), (1350170784,), (1350170789,), (1350170792,), (1350170795,), (1350170797,), (1350170801,), (1350170835,), (1350170864,), (1350170869,), (1350170873,)) 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 (1350170500) 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 22061939 , 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=22061893 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 (22061939) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22061893) result : ((1350170215,), (1350170220,), (1350170222,), (1350170225,), (1350170228,), (1350170264,), (1350170266,), (1350170268,), (1350170270,), (1350170272,), (1350170315,), (1350170320,), (1350170325,), (1350170336,), (1350170349,), (1350170354,), (1350170396,), (1350170399,), (1350170402,), (1350170404,), (1350170463,), (1350170471,), (1350170477,), (1350170480,), (1350170500,), (1350170554,), (1350170559,), (1350170562,), (1350170565,), (1350170568,), (1350170599,), (1350170604,), (1350170609,), (1350170613,), (1350170784,), (1350170789,), (1350170792,), (1350170795,), (1350170797,), (1350170801,), (1350170835,), (1350170864,), (1350170869,), (1350170873,)) 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 (1350170500) 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 22061940 , 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=22061893 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 (22061940) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22061893) result : ((1350170215,), (1350170220,), (1350170222,), (1350170225,), (1350170228,), (1350170264,), (1350170266,), (1350170268,), (1350170270,), (1350170272,), (1350170315,), (1350170320,), (1350170325,), (1350170336,), (1350170349,), (1350170354,), (1350170396,), (1350170399,), (1350170402,), (1350170404,), (1350170463,), (1350170471,), (1350170477,), (1350170480,), (1350170500,), (1350170554,), (1350170559,), (1350170562,), (1350170565,), (1350170568,), (1350170599,), (1350170604,), (1350170609,), (1350170613,), (1350170784,), (1350170789,), (1350170792,), (1350170795,), (1350170797,), (1350170801,), (1350170835,), (1350170864,), (1350170869,), (1350170873,)) 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 (1350170500) 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 22061941 , 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=22061893 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 (22061941) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22061893) result : ((1350170215,), (1350170220,), (1350170222,), (1350170225,), (1350170228,), (1350170264,), (1350170266,), (1350170268,), (1350170270,), (1350170272,), (1350170315,), (1350170320,), (1350170325,), (1350170336,), (1350170349,), (1350170354,), (1350170396,), (1350170399,), (1350170402,), (1350170404,), (1350170463,), (1350170471,), (1350170477,), (1350170480,), (1350170500,), (1350170554,), (1350170559,), (1350170562,), (1350170565,), (1350170568,), (1350170599,), (1350170604,), (1350170609,), (1350170613,), (1350170784,), (1350170789,), (1350170792,), (1350170795,), (1350170797,), (1350170801,), (1350170835,), (1350170864,), (1350170869,), (1350170873,)) 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 (1350170500) 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 22061942 , 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=22061893 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 (22061942) result : ((1350170828,), (1350170829,), (1350170901,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22061893) result : ((1350170215,), (1350170220,), (1350170222,), (1350170225,), (1350170228,), (1350170264,), (1350170266,), (1350170268,), (1350170270,), (1350170272,), (1350170315,), (1350170320,), (1350170325,), (1350170336,), (1350170349,), (1350170354,), (1350170396,), (1350170399,), (1350170402,), (1350170404,), (1350170463,), (1350170471,), (1350170477,), (1350170480,), (1350170500,), (1350170554,), (1350170559,), (1350170562,), (1350170565,), (1350170568,), (1350170599,), (1350170604,), (1350170609,), (1350170613,), (1350170784,), (1350170789,), (1350170792,), (1350170795,), (1350170797,), (1350170801,), (1350170835,), (1350170864,), (1350170869,), (1350170873,)) 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 (1350170500) 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 22061943 , 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=22061893 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 (22061943) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22061893) result : ((1350170215,), (1350170220,), (1350170222,), (1350170225,), (1350170228,), (1350170264,), (1350170266,), (1350170268,), (1350170270,), (1350170272,), (1350170315,), (1350170320,), (1350170325,), (1350170336,), (1350170349,), (1350170354,), (1350170396,), (1350170399,), (1350170402,), (1350170404,), (1350170463,), (1350170471,), (1350170477,), (1350170480,), (1350170500,), (1350170554,), (1350170559,), (1350170562,), (1350170565,), (1350170568,), (1350170599,), (1350170604,), (1350170609,), (1350170613,), (1350170784,), (1350170789,), (1350170792,), (1350170795,), (1350170797,), (1350170801,), (1350170835,), (1350170864,), (1350170869,), (1350170873,)) 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 (1350170500) 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`=22061893 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','Teint_Dans_La_Masse','Carton_gris','plastique','flou','mal_croppe','kraft','papier','metal','autre_refus','environnement','cartonnette')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22061893 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','Teint_Dans_La_Masse','Carton_gris','plastique','flou','mal_croppe','kraft','papier','metal','autre_refus','environnement','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 22061893, 'sub_port_id': 22061944, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14551326, 'last_updated_at': datetime.datetime(2025, 4, 16, 6, 49, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 6, 49, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 6, 49, 2)}, 'Carton_brun': {'main_port_id': 22061893, 'sub_port_id': 22061945, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14551327, 'last_updated_at': datetime.datetime(2025, 4, 16, 6, 49, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 6, 49, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 6, 49, 2)}, 'autre_refus': {'main_port_id': 22061893, 'sub_port_id': 22061946, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14551328, 'last_updated_at': datetime.datetime(2025, 4, 16, 6, 49, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 6, 49, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 6, 49, 2)}, 'environnement': {'main_port_id': 22061893, 'sub_port_id': 22061947, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14551329, 'last_updated_at': datetime.datetime(2025, 4, 16, 6, 49, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 6, 49, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 6, 49, 2)}, 'Carton_gris': {'main_port_id': 22061893, 'sub_port_id': 22061948, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14551330, 'last_updated_at': datetime.datetime(2025, 4, 16, 6, 49, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 6, 49, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 6, 49, 2)}, 'cartonnette': {'main_port_id': 22061893, 'sub_port_id': 22061949, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14551331, 'last_updated_at': datetime.datetime(2025, 4, 16, 6, 49, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 6, 49, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 6, 49, 2)}, 'kraft': {'main_port_id': 22061893, 'sub_port_id': 22061950, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14551332, 'last_updated_at': datetime.datetime(2025, 4, 16, 6, 49, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 6, 49, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 6, 49, 2)}, 'flou': {'main_port_id': 22061893, 'sub_port_id': 22061951, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14551333, 'last_updated_at': datetime.datetime(2025, 4, 16, 6, 49, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 6, 49, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 6, 49, 2)}, 'metal': {'main_port_id': 22061893, 'sub_port_id': 22061952, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14551334, 'last_updated_at': datetime.datetime(2025, 4, 16, 6, 49, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 6, 49, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 6, 49, 2)}, 'papier': {'main_port_id': 22061893, 'sub_port_id': 22061953, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14551335, 'last_updated_at': datetime.datetime(2025, 4, 16, 6, 49, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 6, 49, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 6, 49, 2)}, 'plastique': {'main_port_id': 22061893, 'sub_port_id': 22061954, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14551336, 'last_updated_at': datetime.datetime(2025, 4, 16, 6, 49, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 6, 49, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 6, 49, 2)}, 'mal_croppe': {'main_port_id': 22061893, 'sub_port_id': 22061955, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14551337, 'last_updated_at': datetime.datetime(2025, 4, 16, 6, 52, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 6, 52, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 6, 49, 2)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22061944,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22061932 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22061945,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22061933 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22061946,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22061934 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22061947,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22061935 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22061948,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22061936 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22061949,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22061937 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22061950,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22061938 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22061951,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22061939 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22061952,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22061940 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22061953,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22061941 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22061954,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22061942 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22061955,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22061943 lien utilise dans velours : https://www.fotonower.com/velours/22061944,22061945,22061946,22061947,22061948,22061949,22061950,22061951,22061952,22061953,22061954,22061955?tags=Teint_Dans_La_Masse,Carton_brun,autre_refus,environnement,Carton_gris,cartonnette,kraft,flou,metal,papier,plastique,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22061893]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1350170873, 1350170869, 1350170864, 1350170835, 1350170801, 1350170797, 1350170795, 1350170792, 1350170789, 1350170784] map_info['map_portfolio_photo'] : {22061893: [1350170873, 1350170869, 1350170864, 1350170835, 1350170801, 1350170797, 1350170795, 1350170792, 1350170789, 1350170784, 1350170613, 1350170609, 1350170604, 1350170599, 1350170568, 1350170565, 1350170562, 1350170559, 1350170554, 1350170500, 1350170480, 1350170477, 1350170471, 1350170463, 1350170404, 1350170402, 1350170399, 1350170396, 1350170354, 1350170349, 1350170336, 1350170325, 1350170320, 1350170315, 1350170272, 1350170270, 1350170268, 1350170266, 1350170264, 1350170228, 1350170225, 1350170222, 1350170220, 1350170215]} final : False mtd_id 4302 list_pids : [1350170873, 1350170869, 1350170864, 1350170835, 1350170801, 1350170797, 1350170795, 1350170792, 1350170789, 1350170784] Looping around the photos to save general results len do output : 1 /22061893. 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, '2724640') ('4302', '22061893', '1350170873', None, None, None, None, None, '2724640') ('4302', None, None, None, None, None, None, None, '2724640') ('4302', '22061893', '1350170869', None, None, None, None, None, '2724640') ('4302', None, None, None, None, None, None, None, '2724640') ('4302', '22061893', '1350170864', None, None, None, None, None, '2724640') ('4302', None, None, None, None, None, None, None, '2724640') ('4302', '22061893', '1350170835', None, None, None, None, None, '2724640') ('4302', None, None, None, None, None, None, None, '2724640') ('4302', '22061893', '1350170801', None, None, None, None, None, '2724640') ('4302', None, None, None, None, None, None, None, '2724640') ('4302', '22061893', '1350170797', None, None, None, None, None, '2724640') ('4302', None, None, None, None, None, None, None, '2724640') ('4302', '22061893', '1350170795', None, None, None, None, None, '2724640') ('4302', None, None, None, None, None, None, None, '2724640') ('4302', '22061893', '1350170792', None, None, None, None, None, '2724640') ('4302', None, None, None, None, None, None, None, '2724640') ('4302', '22061893', '1350170789', None, None, None, None, None, '2724640') ('4302', None, None, None, None, None, None, None, '2724640') ('4302', '22061893', '1350170784', None, None, None, None, None, '2724640') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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, '22061893', "{'Teint_Dans_La_Masse': 22061932, 'Carton_brun': 22061933, 'autre_refus': 22061934, 'environnement': 22061935, 'Carton_gris': 22061936, 'cartonnette': 22061937, 'kraft': 22061938, 'flou': 22061939, 'metal': 22061940, 'papier': 22061941, 'plastique': 22061942, 'mal_croppe': 22061943}", None, None, None, None, '2724640'), ('4302', '22061893', '1350170873', None, None, None, None, None, '2724640'), ('4302', '22061893', '1350170869', None, None, None, None, None, '2724640'), ('4302', '22061893', '1350170864', None, None, None, None, None, '2724640'), ('4302', '22061893', '1350170835', None, None, None, None, None, '2724640'), ('4302', '22061893', '1350170801', None, None, None, None, None, '2724640'), ('4302', '22061893', '1350170797', None, None, None, None, None, '2724640'), ('4302', '22061893', '1350170795', None, None, None, None, None, '2724640'), ('4302', '22061893', '1350170792', None, None, None, None, None, '2724640'), ('4302', '22061893', '1350170789', None, None, None, None, None, '2724640'), ('4302', '22061893', '1350170784', None, None, None, None, None, '2724640')] time used for this insertion : 0.013638496398925781 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5520379543304443 time spend to save output : 0.014024972915649414 total time spend for step 1 : 0.5660629272460938 step2:final Wed Apr 16 06:54: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 (22061893) 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 22061893 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1350170228,1350170225,1350170222,1350170220,1350170215,1350170272,1350170270,1350170268,1350170266,1350170264,1350170354,1350170349,1350170336,1350170325,1350170320,1350170315,1350170404,1350170402,1350170399,1350170396,1350170500,1350170480,1350170477,1350170471,1350170463,1350170568,1350170565,1350170562,1350170559,1350170554,1350170613,1350170609,1350170604,1350170599,1350170801,1350170797,1350170795,1350170792,1350170789,1350170784,1350170873,1350170869,1350170835,1350170864); 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([22061893]) Inside saveOutput : final : False verbose : True original output for save of step final : {1350170873: ('0.060982182926727566',), 1350170869: ('0.060982182926727566',), 1350170864: ('0.060982182926727566',), 1350170835: ('0.060982182926727566',), 1350170801: ('0.060982182926727566',), 1350170797: ('0.060982182926727566',), 1350170795: ('0.060982182926727566',), 1350170792: ('0.060982182926727566',), 1350170789: ('0.060982182926727566',), 1350170784: ('0.060982182926727566',)} new output for save of step final : {1350170873: ('0.060982182926727566',), 1350170869: ('0.060982182926727566',), 1350170864: ('0.060982182926727566',), 1350170835: ('0.060982182926727566',), 1350170801: ('0.060982182926727566',), 1350170797: ('0.060982182926727566',), 1350170795: ('0.060982182926727566',), 1350170792: ('0.060982182926727566',), 1350170789: ('0.060982182926727566',), 1350170784: ('0.060982182926727566',)} [1350170873, 1350170869, 1350170864, 1350170835, 1350170801, 1350170797, 1350170795, 1350170792, 1350170789, 1350170784] map_info['map_portfolio_photo'] : {22061893: [1350170873, 1350170869, 1350170864, 1350170835, 1350170801, 1350170797, 1350170795, 1350170792, 1350170789, 1350170784, 1350170613, 1350170609, 1350170604, 1350170599, 1350170568, 1350170565, 1350170562, 1350170559, 1350170554, 1350170500, 1350170480, 1350170477, 1350170471, 1350170463, 1350170404, 1350170402, 1350170399, 1350170396, 1350170354, 1350170349, 1350170336, 1350170325, 1350170320, 1350170315, 1350170272, 1350170270, 1350170268, 1350170266, 1350170264, 1350170228, 1350170225, 1350170222, 1350170220, 1350170215]} final : False mtd_id 4302 list_pids : [1350170873, 1350170869, 1350170864, 1350170835, 1350170801, 1350170797, 1350170795, 1350170792, 1350170789, 1350170784] Looping around the photos to save general results len do output : 10 /1350170873.Didn't retrieve data . /1350170869.Didn't retrieve data . /1350170864.Didn't retrieve data . /1350170835.Didn't retrieve data . /1350170801.Didn't retrieve data . /1350170797.Didn't retrieve data . /1350170795.Didn't retrieve data . /1350170792.Didn't retrieve data . /1350170789.Didn't retrieve data . /1350170784.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, '2724640') ('4302', '22061893', '1350170873', None, None, None, None, None, '2724640') ('4302', None, None, None, None, None, None, None, '2724640') ('4302', '22061893', '1350170869', None, None, None, None, None, '2724640') ('4302', None, None, None, None, None, None, None, '2724640') ('4302', '22061893', '1350170864', None, None, None, None, None, '2724640') ('4302', None, None, None, None, None, None, None, '2724640') ('4302', '22061893', '1350170835', None, None, None, None, None, '2724640') ('4302', None, None, None, None, None, None, None, '2724640') ('4302', '22061893', '1350170801', None, None, None, None, None, '2724640') ('4302', None, None, None, None, None, None, None, '2724640') ('4302', '22061893', '1350170797', None, None, None, None, None, '2724640') ('4302', None, None, None, None, None, None, None, '2724640') ('4302', '22061893', '1350170795', None, None, None, None, None, '2724640') ('4302', None, None, None, None, None, None, None, '2724640') ('4302', '22061893', '1350170792', None, None, None, None, None, '2724640') ('4302', None, None, None, None, None, None, None, '2724640') ('4302', '22061893', '1350170789', None, None, None, None, None, '2724640') ('4302', None, None, None, None, None, None, None, '2724640') ('4302', '22061893', '1350170784', None, None, None, None, None, '2724640') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 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', '22061893', '1350170873', '0.060982182926727566', None, None, None, None, '2724640'), ('4302', '22061893', '1350170869', '0.060982182926727566', None, None, None, None, '2724640'), ('4302', '22061893', '1350170864', '0.060982182926727566', None, None, None, None, '2724640'), ('4302', '22061893', '1350170835', '0.060982182926727566', None, None, None, None, '2724640'), ('4302', '22061893', '1350170801', '0.060982182926727566', None, None, None, None, '2724640'), ('4302', '22061893', '1350170797', '0.060982182926727566', None, None, None, None, '2724640'), ('4302', '22061893', '1350170795', '0.060982182926727566', None, None, None, None, '2724640'), ('4302', '22061893', '1350170792', '0.060982182926727566', None, None, None, None, '2724640'), ('4302', '22061893', '1350170789', '0.060982182926727566', None, None, None, None, '2724640'), ('4302', '22061893', '1350170784', '0.060982182926727566', None, None, None, None, '2724640')] time used for this insertion : 0.012491464614868164 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0739126205444336 time spend to save output : 0.01305842399597168 total time spend for step 2 : 0.08697104454040527 step3:velours_tree Wed Apr 16 06:54: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 : {22061893: [{'Teint_Dans_La_Masse': 22061932, 'Carton_brun': 22061933, 'autre_refus': 22061934, 'environnement': 22061935, 'Carton_gris': 22061936, 'cartonnette': 22061937, 'kraft': 22061938, 'flou': 22061939, 'metal': 22061940, 'papier': 22061941, 'plastique': 22061942, 'mal_croppe': 22061943}]} input_args_next_step : {22061893: ()} output_args : {22061893: [{'Teint_Dans_La_Masse': 22061932, 'Carton_brun': 22061933, 'autre_refus': 22061934, 'environnement': 22061935, 'Carton_gris': 22061936, 'cartonnette': 22061937, 'kraft': 22061938, 'flou': 22061939, 'metal': 22061940, 'papier': 22061941, 'plastique': 22061942, 'mal_croppe': 22061943}]} args : 22061893 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 : ({'Teint_Dans_La_Masse': 22061932, 'Carton_brun': 22061933, 'autre_refus': 22061934, 'environnement': 22061935, 'Carton_gris': 22061936, 'cartonnette': 22061937, 'kraft': 22061938, 'flou': 22061939, 'metal': 22061940, 'papier': 22061941, 'plastique': 22061942, 'mal_croppe': 22061943},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22061893) 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([22061893]) 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.5830032825469971 time spend to save output : 6.341934204101562e-05 total time spend for step 3 : 0.5830667018890381 step4:send_mail_cod Wed Apr 16 06:55: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 : {1350170873: ('0.060982182926727566',), 1350170869: ('0.060982182926727566',), 1350170864: ('0.060982182926727566',), 1350170835: ('0.060982182926727566',), 1350170801: ('0.060982182926727566',), 1350170797: ('0.060982182926727566',), 1350170795: ('0.060982182926727566',), 1350170792: ('0.060982182926727566',), 1350170789: ('0.060982182926727566',), 1350170784: ('0.060982182926727566',)} input_args_next_step : {1350170873: ()} output_args : {1350170873: ('0.060982182926727566',), 1350170869: ('0.060982182926727566',), 1350170864: ('0.060982182926727566',), 1350170835: ('0.060982182926727566',), 1350170801: ('0.060982182926727566',), 1350170797: ('0.060982182926727566',), 1350170795: ('0.060982182926727566',), 1350170792: ('0.060982182926727566',), 1350170789: ('0.060982182926727566',), 1350170784: ('0.060982182926727566',)} args : 1350170873 depend.output_id : 0 input_args_next_step : {1350170873: ('0.060982182926727566',), 1350170869: ()} output_args : {1350170873: ('0.060982182926727566',), 1350170869: ('0.060982182926727566',), 1350170864: ('0.060982182926727566',), 1350170835: ('0.060982182926727566',), 1350170801: ('0.060982182926727566',), 1350170797: ('0.060982182926727566',), 1350170795: ('0.060982182926727566',), 1350170792: ('0.060982182926727566',), 1350170789: ('0.060982182926727566',), 1350170784: ('0.060982182926727566',)} args : 1350170869 depend.output_id : 0 input_args_next_step : {1350170873: ('0.060982182926727566',), 1350170869: ('0.060982182926727566',), 1350170864: ()} output_args : {1350170873: ('0.060982182926727566',), 1350170869: ('0.060982182926727566',), 1350170864: ('0.060982182926727566',), 1350170835: ('0.060982182926727566',), 1350170801: ('0.060982182926727566',), 1350170797: ('0.060982182926727566',), 1350170795: ('0.060982182926727566',), 1350170792: ('0.060982182926727566',), 1350170789: ('0.060982182926727566',), 1350170784: ('0.060982182926727566',)} args : 1350170864 depend.output_id : 0 input_args_next_step : {1350170873: ('0.060982182926727566',), 1350170869: ('0.060982182926727566',), 1350170864: ('0.060982182926727566',), 1350170835: ()} output_args : {1350170873: ('0.060982182926727566',), 1350170869: ('0.060982182926727566',), 1350170864: ('0.060982182926727566',), 1350170835: ('0.060982182926727566',), 1350170801: ('0.060982182926727566',), 1350170797: ('0.060982182926727566',), 1350170795: ('0.060982182926727566',), 1350170792: ('0.060982182926727566',), 1350170789: ('0.060982182926727566',), 1350170784: ('0.060982182926727566',)} args : 1350170835 depend.output_id : 0 input_args_next_step : {1350170873: ('0.060982182926727566',), 1350170869: ('0.060982182926727566',), 1350170864: ('0.060982182926727566',), 1350170835: ('0.060982182926727566',), 1350170801: ()} output_args : {1350170873: ('0.060982182926727566',), 1350170869: ('0.060982182926727566',), 1350170864: ('0.060982182926727566',), 1350170835: ('0.060982182926727566',), 1350170801: ('0.060982182926727566',), 1350170797: ('0.060982182926727566',), 1350170795: ('0.060982182926727566',), 1350170792: ('0.060982182926727566',), 1350170789: ('0.060982182926727566',), 1350170784: ('0.060982182926727566',)} args : 1350170801 depend.output_id : 0 input_args_next_step : {1350170873: ('0.060982182926727566',), 1350170869: ('0.060982182926727566',), 1350170864: ('0.060982182926727566',), 1350170835: ('0.060982182926727566',), 1350170801: ('0.060982182926727566',), 1350170797: ()} output_args : {1350170873: ('0.060982182926727566',), 1350170869: ('0.060982182926727566',), 1350170864: ('0.060982182926727566',), 1350170835: ('0.060982182926727566',), 1350170801: ('0.060982182926727566',), 1350170797: ('0.060982182926727566',), 1350170795: ('0.060982182926727566',), 1350170792: ('0.060982182926727566',), 1350170789: ('0.060982182926727566',), 1350170784: ('0.060982182926727566',)} args : 1350170797 depend.output_id : 0 input_args_next_step : {1350170873: ('0.060982182926727566',), 1350170869: ('0.060982182926727566',), 1350170864: ('0.060982182926727566',), 1350170835: ('0.060982182926727566',), 1350170801: ('0.060982182926727566',), 1350170797: ('0.060982182926727566',), 1350170795: ()} output_args : {1350170873: ('0.060982182926727566',), 1350170869: ('0.060982182926727566',), 1350170864: ('0.060982182926727566',), 1350170835: ('0.060982182926727566',), 1350170801: ('0.060982182926727566',), 1350170797: ('0.060982182926727566',), 1350170795: ('0.060982182926727566',), 1350170792: ('0.060982182926727566',), 1350170789: ('0.060982182926727566',), 1350170784: ('0.060982182926727566',)} args : 1350170795 depend.output_id : 0 input_args_next_step : {1350170873: ('0.060982182926727566',), 1350170869: ('0.060982182926727566',), 1350170864: ('0.060982182926727566',), 1350170835: ('0.060982182926727566',), 1350170801: ('0.060982182926727566',), 1350170797: ('0.060982182926727566',), 1350170795: ('0.060982182926727566',), 1350170792: ()} output_args : {1350170873: ('0.060982182926727566',), 1350170869: ('0.060982182926727566',), 1350170864: ('0.060982182926727566',), 1350170835: ('0.060982182926727566',), 1350170801: ('0.060982182926727566',), 1350170797: ('0.060982182926727566',), 1350170795: ('0.060982182926727566',), 1350170792: ('0.060982182926727566',), 1350170789: ('0.060982182926727566',), 1350170784: ('0.060982182926727566',)} args : 1350170792 depend.output_id : 0 input_args_next_step : {1350170873: ('0.060982182926727566',), 1350170869: ('0.060982182926727566',), 1350170864: ('0.060982182926727566',), 1350170835: ('0.060982182926727566',), 1350170801: ('0.060982182926727566',), 1350170797: ('0.060982182926727566',), 1350170795: ('0.060982182926727566',), 1350170792: ('0.060982182926727566',), 1350170789: ()} output_args : {1350170873: ('0.060982182926727566',), 1350170869: ('0.060982182926727566',), 1350170864: ('0.060982182926727566',), 1350170835: ('0.060982182926727566',), 1350170801: ('0.060982182926727566',), 1350170797: ('0.060982182926727566',), 1350170795: ('0.060982182926727566',), 1350170792: ('0.060982182926727566',), 1350170789: ('0.060982182926727566',), 1350170784: ('0.060982182926727566',)} args : 1350170789 depend.output_id : 0 input_args_next_step : {1350170873: ('0.060982182926727566',), 1350170869: ('0.060982182926727566',), 1350170864: ('0.060982182926727566',), 1350170835: ('0.060982182926727566',), 1350170801: ('0.060982182926727566',), 1350170797: ('0.060982182926727566',), 1350170795: ('0.060982182926727566',), 1350170792: ('0.060982182926727566',), 1350170789: ('0.060982182926727566',), 1350170784: ()} output_args : {1350170873: ('0.060982182926727566',), 1350170869: ('0.060982182926727566',), 1350170864: ('0.060982182926727566',), 1350170835: ('0.060982182926727566',), 1350170801: ('0.060982182926727566',), 1350170797: ('0.060982182926727566',), 1350170795: ('0.060982182926727566',), 1350170792: ('0.060982182926727566',), 1350170789: ('0.060982182926727566',), 1350170784: ('0.060982182926727566',)} args : 1350170784 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 : {22061893: [{'Teint_Dans_La_Masse': 22061932, 'Carton_brun': 22061933, 'autre_refus': 22061934, 'environnement': 22061935, 'Carton_gris': 22061936, 'cartonnette': 22061937, 'kraft': 22061938, 'flou': 22061939, 'metal': 22061940, 'papier': 22061941, 'plastique': 22061942, 'mal_croppe': 22061943}]} input_args_next_step : {1350170873: ('0.060982182926727566',), 1350170869: ('0.060982182926727566',), 1350170864: ('0.060982182926727566',), 1350170835: ('0.060982182926727566',), 1350170801: ('0.060982182926727566',), 1350170797: ('0.060982182926727566',), 1350170795: ('0.060982182926727566',), 1350170792: ('0.060982182926727566',), 1350170789: ('0.060982182926727566',), 1350170784: ('0.060982182926727566',), 22061893: ()} output_args : {22061893: [{'Teint_Dans_La_Masse': 22061932, 'Carton_brun': 22061933, 'autre_refus': 22061934, 'environnement': 22061935, 'Carton_gris': 22061936, 'cartonnette': 22061937, 'kraft': 22061938, 'flou': 22061939, 'metal': 22061940, 'papier': 22061941, 'plastique': 22061942, 'mal_croppe': 22061943}]} args : 22061893 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 :11, first value : ('0.060982182926727566',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22061893) 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 (1350170873,1350170869,1350170864,1350170835,1350170801,1350170797,1350170795,1350170792,1350170789,1350170784) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1350170784 begin to download photo : 1350170795 begin to download photo : 1350170835 begin to download photo : 1350170873 download finish for photo 1350170835 begin to download photo : 1350170864 download finish for photo 1350170784 begin to download photo : 1350170789 download finish for photo 1350170795 begin to download photo : 1350170797 download finish for photo 1350170873 download finish for photo 1350170797 begin to download photo : 1350170801 download finish for photo 1350170789 begin to download photo : 1350170792 download finish for photo 1350170864 begin to download photo : 1350170869 download finish for photo 1350170801 download finish for photo 1350170792 download finish for photo 1350170869 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P22061893_16-04-2025_06_55_00.pdf 22061934 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=22061934 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350170818: '1744779191_1500947_1350170554_faf28b680dd5acb67646797f7893f9b1_rle_crop_3748413812_0.png'} change filename to text .imagette220619341744779300/ imagette220619341744779300/1744779191_1500947_1350170554_faf28b680dd5acb67646797f7893f9b1_rle_crop_3748413812_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/3a27ebaec27b4f3ae277499b24396d75_19671873.png imagette220619341744779300 22061937 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=22061937 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350170532: '1744779012_1499331_1350170320_ed76e9fcd0eec7770c3b6cb762fe7505_rle_crop_3748411581_0.png', 1350170533: '1744779012_1499331_1350170315_fd23291a1eb2c9bf40e032a101ebd2db_rle_crop_3748411590_0.png', 1350170582: '1744779071_1499958_1350170354_02abf641bfe30882f314414d783ec9fa_rle_crop_3748413028_0.png', 1350170583: '1744779071_1499958_1350170270_51a77db285434fc089ba89f086f884e5_rle_crop_3748413034_0.png', 1350170821: '1744779191_1500947_1350170562_8976829173c3726ed9767793b48a2315_rle_crop_3748413785_0.png', 1350170822: '1744779191_1500947_1350170559_0cf5d4c642e8bc33c9dc2ca9b97950d5_rle_crop_3748413802_0.png', 1350170893: '1744779252_1501444_1350170500_7ec09bcc5827897e795db379d0ef4edb_rle_crop_3748414043_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/9eb468931f605fe5d86907d4ad592acb_44441132.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/a8b313c130717c36caa9c79cda9a2c08_46510980.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/d199a2a3ed72b54ce3277ebe12826b08_79045591.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/c502f42ab999b31e3712ce8b7d3885fa_56800583.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/8b173e9e9427cfc9e548b354c181af37_24714733.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/a56f96552d6b34e45e99286ed8a0862b_85071159.png change filename to text .imagette220619371744779300/ imagette220619371744779300/1744779012_1499331_1350170320_ed76e9fcd0eec7770c3b6cb762fe7505_rle_crop_3748411581_0.png.png imagette220619371744779300/1744779191_1500947_1350170562_8976829173c3726ed9767793b48a2315_rle_crop_3748413785_0.png.png imagette220619371744779300/1744779252_1501444_1350170500_7ec09bcc5827897e795db379d0ef4edb_rle_crop_3748414043_0.png.png imagette220619371744779300/1744779071_1499958_1350170270_51a77db285434fc089ba89f086f884e5_rle_crop_3748413034_0.png.png imagette220619371744779300/1744779191_1500947_1350170559_0cf5d4c642e8bc33c9dc2ca9b97950d5_rle_crop_3748413802_0.png.png imagette220619371744779300/1744779071_1499958_1350170354_02abf641bfe30882f314414d783ec9fa_rle_crop_3748413028_0.png.png imagette220619371744779300/1744779012_1499331_1350170315_fd23291a1eb2c9bf40e032a101ebd2db_rle_crop_3748411590_0.png.png imagette220619381744779301/ imagette220619391744779301/ imagette220619401744779301/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/6703f9ff7f312bdb0c94c26579a8cddb_83436633.png imagette220619371744779300 22061938 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=22061938 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220619381744779301 22061939 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=22061939 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220619391744779301 22061940 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=22061940 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220619401744779301 22061942 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=22061942 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350170828: '1744779191_1500947_1350170565_13593bbbf51f052a2e708f522f660b5b_rle_crop_3748413777_0.png', 1350170829: '1744779191_1500947_1350170554_faf28b680dd5acb67646797f7893f9b1_rle_crop_3748413824_0.png', 1350170901: '1744779252_1501444_1350170500_7ec09bcc5827897e795db379d0ef4edb_rle_crop_3748414052_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/317e1c808a3ba2fa4bfa6588cbcb4771_50552109.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/7ba776b4233134e75be24b492a957500_87456653.png change filename to text .imagette220619421744779301/ imagette220619421744779301/1744779191_1500947_1350170554_faf28b680dd5acb67646797f7893f9b1_rle_crop_3748413824_0.png.png imagette220619421744779301/1744779191_1500947_1350170565_13593bbbf51f052a2e708f522f660b5b_rle_crop_3748413777_0.png.png imagette220619421744779301/1744779252_1501444_1350170500_7ec09bcc5827897e795db379d0ef4edb_rle_crop_3748414052_0.png.png imagette220619431744779301/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/b97ba346f9bba618cba213b025b03008_97716747.png imagette220619421744779301 22061943 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=22061943 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220619431744779301 22061932 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=22061932 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350170815: '1744779191_1500947_1350170562_8976829173c3726ed9767793b48a2315_rle_crop_3748413788_0.png', 1350170840: '1744779222_2174596_1350170609_23dd4bde5ef94c1ea79967eaa5fca8c4_rle_crop_3748413908_0.png', 1350170841: '1744779222_2174596_1350170604_34b0803220f9cf310e7230a94d5967d4_rle_crop_3748413928_0.png', 1350170843: '1744779222_2174596_1350170599_edbb8d8126b41227335d97c73a34d670_rle_crop_3748413942_0.png', 1350170844: '1744779222_2174596_1350170599_edbb8d8126b41227335d97c73a34d670_rle_crop_3748413943_0.png', 1350170845: '1744779222_2174596_1350170599_edbb8d8126b41227335d97c73a34d670_rle_crop_3748413938_0.png', 1350170890: '1744779252_1501444_1350170500_7ec09bcc5827897e795db379d0ef4edb_rle_crop_3748414045_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/3cf5972331d15d64483985c335648e50_97937897.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/686a0e1701513d5bff2854df75fb56f6_10566631.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/4802b2e61f4b79b4ecdd61dc224f64fc_70198590.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/e1c60ab30a1894748587dde9b56e3d89_91896454.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/5d388c3dc43f3f5d2f325f505aa987ac_43214369.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/ca573a555bc55e5f82713856e06e8490_78814690.png change filename to text .imagette220619321744779301/ imagette220619321744779301/1744779222_2174596_1350170609_23dd4bde5ef94c1ea79967eaa5fca8c4_rle_crop_3748413908_0.png.png imagette220619321744779301/1744779222_2174596_1350170604_34b0803220f9cf310e7230a94d5967d4_rle_crop_3748413928_0.png.png imagette220619321744779301/1744779191_1500947_1350170562_8976829173c3726ed9767793b48a2315_rle_crop_3748413788_0.png.png imagette220619321744779301/1744779222_2174596_1350170599_edbb8d8126b41227335d97c73a34d670_rle_crop_3748413938_0.png.png imagette220619321744779301/1744779222_2174596_1350170599_edbb8d8126b41227335d97c73a34d670_rle_crop_3748413942_0.png.png imagette220619321744779301/1744779252_1501444_1350170500_7ec09bcc5827897e795db379d0ef4edb_rle_crop_3748414045_0.png.png imagette220619321744779301/1744779222_2174596_1350170599_edbb8d8126b41227335d97c73a34d670_rle_crop_3748413943_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/c340a6c188920cb7b4bf22b8e4e36fcd_86436720.png imagette220619321744779301 22061933 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=22061933 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350170534: '1744779012_1499331_1350170336_3518ec9ebcbcd7659b7588ae03fa946b_rle_crop_3748411551_0.png', 1350170535: '1744779012_1499331_1350170325_5b4ccd6dd33ee8574fe939f20c08545a_rle_crop_3748411564_0.png', 1350170536: '1744779012_1499331_1350170320_ed76e9fcd0eec7770c3b6cb762fe7505_rle_crop_3748411577_0.png', 1350170537: '1744779012_1499331_1350170315_fd23291a1eb2c9bf40e032a101ebd2db_rle_crop_3748411596_0.png', 1350170824: '1744779191_1500947_1350170613_c3bc839fcd2132881412a09d6a05bcb8_rle_crop_3748413766_0.png', 1350170825: '1744779191_1500947_1350170559_0cf5d4c642e8bc33c9dc2ca9b97950d5_rle_crop_3748413801_0.png', 1350170855: '1744779222_2174596_1350170609_23dd4bde5ef94c1ea79967eaa5fca8c4_rle_crop_3748413912_0.png', 1350170856: '1744779222_2174596_1350170609_23dd4bde5ef94c1ea79967eaa5fca8c4_rle_crop_3748413914_0.png', 1350170898: '1744779252_1501444_1350170500_7ec09bcc5827897e795db379d0ef4edb_rle_crop_3748414050_0.png', 1350170899: '1744779252_1501444_1350170396_9dd40ef98a1669ba0312eca1e145100a_rle_crop_3748414080_0.png', 1350170900: '1744779252_1501444_1350170396_9dd40ef98a1669ba0312eca1e145100a_rle_crop_3748414075_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/add5715a2601563b3672af90caba407c_90854096.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/099d92b8ad3cfeccb19bffa0ec7722de_71177890.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/00c2309ab55bd39125e1845b7e107d93_61679696.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/c2e973565524a2ea3fc1e362204155db_71229707.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/d03e72effa9a7b6aa19c42bc4a7c7e2c_68131193.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/e7faf69e813d4c9b6c9f67abad007bc0_48984058.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/cde4e080a1c501f36c4b1cf388b85eb1_77017755.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/840f7ba290588af7c537a19605e5f406_24118800.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/a86adf367f35e5929751a90f9290b111_16274723.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/7ceade3b61ec91b85272bb8681ae812f_17537939.png change filename to text .imagette220619331744779301/ imagette220619331744779301/1744779222_2174596_1350170609_23dd4bde5ef94c1ea79967eaa5fca8c4_rle_crop_3748413914_0.png.png imagette220619331744779301/1744779191_1500947_1350170613_c3bc839fcd2132881412a09d6a05bcb8_rle_crop_3748413766_0.png.png imagette220619331744779301/1744779012_1499331_1350170336_3518ec9ebcbcd7659b7588ae03fa946b_rle_crop_3748411551_0.png.png imagette220619331744779301/1744779012_1499331_1350170320_ed76e9fcd0eec7770c3b6cb762fe7505_rle_crop_3748411577_0.png.png imagette220619331744779301/1744779012_1499331_1350170325_5b4ccd6dd33ee8574fe939f20c08545a_rle_crop_3748411564_0.png.png imagette220619331744779301/1744779191_1500947_1350170559_0cf5d4c642e8bc33c9dc2ca9b97950d5_rle_crop_3748413801_0.png.png imagette220619331744779301/1744779012_1499331_1350170315_fd23291a1eb2c9bf40e032a101ebd2db_rle_crop_3748411596_0.png.png imagette220619331744779301/1744779252_1501444_1350170396_9dd40ef98a1669ba0312eca1e145100a_rle_crop_3748414080_0.png.png imagette220619331744779301/1744779222_2174596_1350170609_23dd4bde5ef94c1ea79967eaa5fca8c4_rle_crop_3748413912_0.png.png imagette220619331744779301/1744779252_1501444_1350170396_9dd40ef98a1669ba0312eca1e145100a_rle_crop_3748414075_0.png.png imagette220619331744779301/1744779252_1501444_1350170500_7ec09bcc5827897e795db379d0ef4edb_rle_crop_3748414050_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/8f916b10a5c7539b6439fce4c6c1ce8f_72969993.png imagette220619331744779301 22061936 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=22061936 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350170820: '1744779191_1500947_1350170559_0cf5d4c642e8bc33c9dc2ca9b97950d5_rle_crop_3748413796_0.png', 1350170849: '1744779222_2174596_1350170609_23dd4bde5ef94c1ea79967eaa5fca8c4_rle_crop_3748413910_0.png', 1350170850: '1744779222_2174596_1350170609_23dd4bde5ef94c1ea79967eaa5fca8c4_rle_crop_3748413911_0.png', 1350170851: '1744779222_2174596_1350170604_34b0803220f9cf310e7230a94d5967d4_rle_crop_3748413924_0.png', 1350170852: '1744779222_2174596_1350170604_34b0803220f9cf310e7230a94d5967d4_rle_crop_3748413925_0.png', 1350170853: '1744779222_2174596_1350170604_34b0803220f9cf310e7230a94d5967d4_rle_crop_3748413923_0.png', 1350170892: '1744779252_1501444_1350170399_5636c6b06506cad3e8e8c96fb5a74e22_rle_crop_3748414059_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/554a8191f57248a2ee200cb90abb7e7b_53952295.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/62c3b0fa342eb3d16ee866bc82dde8bf_62797838.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/8a8ee9e7725072ab0140a51527ec9773_14019600.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/0305b7b3e00856083f89d76fc7397d16_98147500.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/d32cf36dbe01f3ec1c59cfcf0200ba7b_38837498.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/7640d0f580ec46c9f3fcd1f7efaa6672_21783297.png change filename to text .imagette220619361744779302/ imagette220619361744779302/1744779222_2174596_1350170609_23dd4bde5ef94c1ea79967eaa5fca8c4_rle_crop_3748413910_0.png.png imagette220619361744779302/1744779191_1500947_1350170559_0cf5d4c642e8bc33c9dc2ca9b97950d5_rle_crop_3748413796_0.png.png imagette220619361744779302/1744779252_1501444_1350170399_5636c6b06506cad3e8e8c96fb5a74e22_rle_crop_3748414059_0.png.png imagette220619361744779302/1744779222_2174596_1350170604_34b0803220f9cf310e7230a94d5967d4_rle_crop_3748413925_0.png.png imagette220619361744779302/1744779222_2174596_1350170604_34b0803220f9cf310e7230a94d5967d4_rle_crop_3748413923_0.png.png imagette220619361744779302/1744779222_2174596_1350170604_34b0803220f9cf310e7230a94d5967d4_rle_crop_3748413924_0.png.png imagette220619361744779302/1744779222_2174596_1350170609_23dd4bde5ef94c1ea79967eaa5fca8c4_rle_crop_3748413911_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/1bf8b42674a433fa79e300a86ab52e4a_18035757.png imagette220619361744779302 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22061893 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22061944,22061945,22061946,22061947,22061948,22061949,22061950,22061951,22061952,22061953,22061954,22061955?tags=Teint_Dans_La_Masse,Carton_brun,autre_refus,environnement,Carton_gris,cartonnette,kraft,flou,metal,papier,plastique,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1350170873] : ('0.060982182926727566',) no score found for photo 1350170873 We are sending mail with results at report@fotonower.com args[1350170869] : ('0.060982182926727566',) no score found for photo 1350170869 We are sending mail with results at report@fotonower.com args[1350170864] : ('0.060982182926727566',) no score found for photo 1350170864 We are sending mail with results at report@fotonower.com args[1350170835] : ('0.060982182926727566',) no score found for photo 1350170835 We are sending mail with results at report@fotonower.com args[1350170801] : ('0.060982182926727566',) no score found for photo 1350170801 We are sending mail with results at report@fotonower.com args[1350170797] : ('0.060982182926727566',) no score found for photo 1350170797 We are sending mail with results at report@fotonower.com args[1350170795] : ('0.060982182926727566',) no score found for photo 1350170795 We are sending mail with results at report@fotonower.com args[1350170792] : ('0.060982182926727566',) no score found for photo 1350170792 We are sending mail with results at report@fotonower.com args[1350170789] : ('0.060982182926727566',) no score found for photo 1350170789 We are sending mail with results at report@fotonower.com args[1350170784] : ('0.060982182926727566',) no score found for photo 1350170784 We are sending mail with results at report@fotonower.com refus_total : 0.060982182926727566 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=22061893 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_P22061893_16-04-2025_06_55_00.pdf results_Auto_P22061893_16-04-2025_06_55_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22061893_16-04-2025_06_55_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','22061893','results_Auto_P22061893_16-04-2025_06_55_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22061893_16-04-2025_06_55_00.pdf','pdf','','0.19','0.060982182926727566') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22061893]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1350170873, 1350170869, 1350170864, 1350170835, 1350170801, 1350170797, 1350170795, 1350170792, 1350170789, 1350170784] map_info['map_portfolio_photo'] : {22061893: [1350170873, 1350170869, 1350170864, 1350170835, 1350170801, 1350170797, 1350170795, 1350170792, 1350170789, 1350170784, 1350170613, 1350170609, 1350170604, 1350170599, 1350170568, 1350170565, 1350170562, 1350170559, 1350170554, 1350170500, 1350170480, 1350170477, 1350170471, 1350170463, 1350170404, 1350170402, 1350170399, 1350170396, 1350170354, 1350170349, 1350170336, 1350170325, 1350170320, 1350170315, 1350170272, 1350170270, 1350170268, 1350170266, 1350170264, 1350170228, 1350170225, 1350170222, 1350170220, 1350170215]} final : False mtd_id 4302 list_pids : [1350170873, 1350170869, 1350170864, 1350170835, 1350170801, 1350170797, 1350170795, 1350170792, 1350170789, 1350170784] 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, '2724640') ('4302', '22061893', '1350170873', None, None, None, None, None, '2724640') ('4302', None, None, None, None, None, None, None, '2724640') ('4302', '22061893', '1350170869', None, None, None, None, None, '2724640') ('4302', None, None, None, None, None, None, None, '2724640') ('4302', '22061893', '1350170864', None, None, None, None, None, '2724640') ('4302', None, None, None, None, None, None, None, '2724640') ('4302', '22061893', '1350170835', None, None, None, None, None, '2724640') ('4302', None, None, None, None, None, None, None, '2724640') ('4302', '22061893', '1350170801', None, None, None, None, None, '2724640') ('4302', None, None, None, None, None, None, None, '2724640') ('4302', '22061893', '1350170797', None, None, None, None, None, '2724640') ('4302', None, None, None, None, None, None, None, '2724640') ('4302', '22061893', '1350170795', None, None, None, None, None, '2724640') ('4302', None, None, None, None, None, None, None, '2724640') ('4302', '22061893', '1350170792', None, None, None, None, None, '2724640') ('4302', None, None, None, None, None, None, None, '2724640') ('4302', '22061893', '1350170789', None, None, None, None, None, '2724640') ('4302', None, None, None, None, None, None, None, '2724640') ('4302', '22061893', '1350170784', None, None, None, None, None, '2724640') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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', '22061893', '1350170873', None, None, None, None, None, '2724640'), ('4302', '22061893', '1350170869', None, None, None, None, None, '2724640'), ('4302', '22061893', '1350170864', None, None, None, None, None, '2724640'), ('4302', '22061893', '1350170835', None, None, None, None, None, '2724640'), ('4302', '22061893', '1350170801', None, None, None, None, None, '2724640'), ('4302', '22061893', '1350170797', None, None, None, None, None, '2724640'), ('4302', '22061893', '1350170795', None, None, None, None, None, '2724640'), ('4302', '22061893', '1350170792', None, None, None, None, None, '2724640'), ('4302', '22061893', '1350170789', None, None, None, None, None, '2724640'), ('4302', '22061893', '1350170784', None, None, None, None, None, '2724640')] time used for this insertion : 0.013499021530151367 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.6744484901428223 time spend to save output : 0.013811826705932617 total time spend for step 4 : 3.688260316848755 step5:split_time_score Wed Apr 16 06:55:04 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['22061893'] 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 : [('22061893',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22061893) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1350170873: {'path': 'temp/1744779300_3339294_1350170873_aea5a36a398faa4de93eb9361a385155.jpg', 'extension': 'jpg'}, 1350170795: {'path': 'temp/1744779300_3339294_1350170795_b256a27323db0fbf6c48ffd6025afdeb.jpg', 'extension': 'jpg'}, 1350170797: {'path': 'temp/1744779300_3339294_1350170797_d960f5a5ff19764d6b9e0951d53cfd92.jpg', 'extension': 'jpg'}, 1350170801: {'path': 'temp/1744779300_3339294_1350170801_1dab09b7491b6980ec0ab6133cacf5b7.jpg', 'extension': 'jpg'}, 1350170784: {'path': 'temp/1744779300_3339294_1350170784_5e6f71761bcdc485f651290d49f0790d.jpg', 'extension': 'jpg'}, 1350170789: {'path': 'temp/1744779300_3339294_1350170789_4db5ce1ac8bdafdad2ef317889c972db.jpg', 'extension': 'jpg'}, 1350170792: {'path': 'temp/1744779300_3339294_1350170792_f45930c43e4f1f29478b905d9b7f86ab.jpg', 'extension': 'jpg'}, 1350170835: {'path': 'temp/1744779300_3339294_1350170835_e9689264aacf72767a51e2bc7b3f5d47.jpg', 'extension': 'jpg'}, 1350170864: {'path': 'temp/1744779300_3339294_1350170864_533605900b8ca59fbf78434932064799.jpg', 'extension': 'jpg'}, 1350170869: {'path': 'temp/1744779300_3339294_1350170869_81b8eada39bfa4f2efdac05e2ac4c73b.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 = 22061893; (('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 = 22061893 group by h (('06', 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=22061893 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 (22061893) 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 (22061893) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 16042025 22061893 Nombre de photos uploadées : 44 / 23040 (0%) 16042025 22061893 Nombre de photos taguées (types de déchets): 0 / 44 (0%) 16042025 22061893 Nombre de photos taguées (volume) : 0 / 44 (0%) [{'photo_id': 1350170228, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/9389a118329a4b64f987660fa0dbba45.jpg', 'username': None, 'uploaded_at': 1744778767, 'text': 'image_16042025_06_45_04_10152.jpg'}, {'photo_id': 1350170225, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/3a8dbd507d4d4f93fcea4c98059b1ab4.jpg', 'username': None, 'uploaded_at': 1744778767, 'text': 'image_16042025_06_45_14_10134.jpg'}, {'photo_id': 1350170222, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/f6da486c4622a6d960a4858b77fa147a.jpg', 'username': None, 'uploaded_at': 1744778767, 'text': 'image_16042025_06_45_23_9125.jpg'}, {'photo_id': 1350170220, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/936dba85e8f0b423da2e90e1f174cee7.jpg', 'username': None, 'uploaded_at': 1744778767, 'text': 'image_16042025_06_45_34_10137.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.86102294921875e-06 elapsed_time : order_list_meta_photo_and_scores 9.775161743164062e-06 ???????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002745389938354492 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22061893, '2025-04-16' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1717339,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.022138357162475586 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= 1717339 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1717339, 'dashboard_run_id': 1725638, 'mtr_portfolio_id': 22060778, 'dashboard_result_id': 9873052, '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_P22060778_16-04-2025_06_26_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22060852, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22060853, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22060854, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22060855, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22060856, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22060857, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22060858, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22060859, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22060860, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22060861, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22060862, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22060863, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1725638, 'mtr_portfolio_id': 22061488, 'dashboard_result_id': 9873054, '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_P22061488_16-04-2025_06_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22061489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22061490, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22061491, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22061492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22061493, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22061494, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22061495, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22061496, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22061497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22061498, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22061499, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22061500, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1725638, 'mtr_portfolio_id': 22061745, 'dashboard_result_id': 9873055, '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_P22061745_16-04-2025_06_47_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22061746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22061747, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22061748, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22061749, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22061750, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22061751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22061752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22061753, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22061754, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22061755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22061756, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22061757, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1725638, 'mtr_portfolio_id': 22061893, 'dashboard_result_id': 9873057, '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_P22061893_16-04-2025_06_52_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22061932, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22061933, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22061934, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22061935, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22061936, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22061937, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22061938, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22061939, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22061940, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22061941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22061942, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22061943, '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 = 22060778 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': 2724549, 'mtr_portfolio_id': 22060778, 'created_at': datetime.datetime(2025, 4, 16, 6, 26, 59), 'result': '0.040005706266605594', 'result_long': None, 'result_double': None}] Qualite : 0.040005706266605594 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22060778 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22060778_16-04-2025_06_26_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22060778 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_P22060778_16-04-2025_06_26_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22060852, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22060853, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22060854, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22060855, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22060856, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22060857, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22060858, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22060859, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22060860, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22060861, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22060862, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22060863, 'pht': 3726}}" where mtr_portfolio_id = 22060778 and dashboard_run_id = 1725638 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`=22060778 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9873052, 0.040005706266605594, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22060778_16-04-2025_06_26_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22060852, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22060853, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22060854, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22060855, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22060856, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22060857, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22060858, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22060859, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22060860, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22060861, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22060862, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22060863, '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 = 22061488 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': 2724598, 'mtr_portfolio_id': 22061488, 'created_at': datetime.datetime(2025, 4, 16, 6, 32, 59), 'result': '0.07358176482101732', 'result_long': None, 'result_double': None}] Qualite : 0.07358176482101732 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22061488 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22061488_16-04-2025_06_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22061488 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_P22061488_16-04-2025_06_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22061489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22061490, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22061491, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22061492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22061493, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22061494, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22061495, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22061496, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22061497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22061498, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22061499, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22061500, 'pht': 3726}}" where mtr_portfolio_id = 22061488 and dashboard_run_id = 1725638 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`=22061488 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9873054, 0.07358176482101732, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22061488_16-04-2025_06_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22061489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22061490, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22061491, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22061492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22061493, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22061494, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22061495, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22061496, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22061497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22061498, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22061499, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22061500, '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 = 22061745 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': 2724622, 'mtr_portfolio_id': 22061745, 'created_at': datetime.datetime(2025, 4, 16, 6, 47), 'result': '0.04731059335505752', 'result_long': None, 'result_double': None}] Qualite : 0.04731059335505752 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22061745 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22061745_16-04-2025_06_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22061745 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_P22061745_16-04-2025_06_47_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22061746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22061747, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22061748, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22061749, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22061750, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22061751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22061752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22061753, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22061754, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22061755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22061756, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22061757, 'pht': 3726}}" where mtr_portfolio_id = 22061745 and dashboard_run_id = 1725638 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`=22061745 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9873055, 0.04731059335505752, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22061745_16-04-2025_06_47_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22061746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22061747, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22061748, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22061749, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22061750, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22061751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22061752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22061753, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22061754, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22061755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22061756, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22061757, '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 = 22061893 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': 2724640, 'mtr_portfolio_id': 22061893, 'created_at': datetime.datetime(2025, 4, 16, 6, 54, 59), 'result': '0.060982182926727566', 'result_long': None, 'result_double': None}] Qualite : 0.060982182926727566 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22061893 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22061893_16-04-2025_06_55_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22061893 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_P22061893_16-04-2025_06_55_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22061932, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22061933, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22061934, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22061935, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22061936, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22061937, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22061938, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22061939, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22061940, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22061941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22061942, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22061943, 'pht': 3726}}" where mtr_portfolio_id = 22061893 and dashboard_run_id = 1725638 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`=22061893 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9873057, 0.060982182926727566, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22061893_16-04-2025_06_55_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22061932, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22061933, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22061934, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22061935, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22061936, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22061937, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22061938, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22061939, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22061940, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22061941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22061942, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22061943, '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 (22060778,22061488,22061745,22061893) result : ((1350165168,), (1350165195,), (1350165210,), (1350165236,), (1350165464,), (1350165490,), (1350165515,), (1350165542,), (1350165571,), (1350165843,), (1350165865,), (1350165890,), (1350165917,), (1350165943,), (1350165971,), (1350166207,), (1350166236,), (1350166262,), (1350166606,), (1350166632,), (1350166651,), (1350166653,), (1350166657,), (1350166692,), (1350166714,), (1350166742,), (1350166769,), (1350166797,), (1350166823,), (1350167013,), (1350167037,), (1350167042,), (1350167045,), (1350167163,), (1350167169,), (1350167173,), (1350167175,), (1350167179,), (1350167182,), (1350167240,), (1350167243,), (1350167310,), (1350167315,), (1350167317,), (1350167319,), (1350167391,), (1350167394,), (1350167396,), (1350167400,), (1350167466,), (1350167548,), (1350167716,), (1350167723,), (1350167727,), (1350167780,), (1350167784,), (1350167787,), (1350167789,), (1350167832,), (1350168809,), (1350168782,), (1350168784,), (1350168787,), (1350168952,), (1350168962,), (1350168979,), (1350168987,), (1350168990,), (1350168993,), (1350169029,), (1350169032,), (1350169033,), (1350169341,), (1350169335,), (1350169727,), (1350169732,), (1350169772,), (1350169778,), (1350169865,), (1350169870,), (1350169906,), (1350169912,), (1350169918,), (1350169923,), (1350169928,), (1350169941,), (1350170012,), (1350170017,), (1350170020,), (1350170023,), (1350170028,), (1350170059,), (1350170065,), (1350170071,), (1350170076,), (1350170112,), (1350170119,), (1350170123,), (1350170127,), (1350170132,), (1350170134,), (1350170166,), (1350170172,), (1350170178,), (1350170181,), (1350170232,), (1350170215,), (1350170220,), (1350170222,), (1350170225,), (1350170228,), (1350170264,), (1350170266,), (1350170268,), (1350170270,), (1350170272,), (1350170315,), (1350170320,), (1350170325,), (1350170336,), (1350170349,), (1350170354,), (1350170396,), (1350170399,), (1350170402,), (1350170404,), (1350170463,), (1350170471,), (1350170477,), (1350170480,), (1350170500,), (1350170554,), (1350170559,), (1350170562,), (1350170565,), (1350170568,), (1350170599,), (1350170604,), (1350170609,), (1350170613,), (1350170784,), (1350170789,), (1350170792,), (1350170795,), (1350170797,), (1350170801,), (1350170835,), (1350170864,), (1350170869,), (1350170873,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'16042025': {'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([22061893]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1350170873, 1350170869, 1350170864, 1350170835, 1350170801, 1350170797, 1350170795, 1350170792, 1350170789, 1350170784] map_info['map_portfolio_photo'] : {22061893: [1350170873, 1350170869, 1350170864, 1350170835, 1350170801, 1350170797, 1350170795, 1350170792, 1350170789, 1350170784, 1350170613, 1350170609, 1350170604, 1350170599, 1350170568, 1350170565, 1350170562, 1350170559, 1350170554, 1350170500, 1350170480, 1350170477, 1350170471, 1350170463, 1350170404, 1350170402, 1350170399, 1350170396, 1350170354, 1350170349, 1350170336, 1350170325, 1350170320, 1350170315, 1350170272, 1350170270, 1350170268, 1350170266, 1350170264, 1350170228, 1350170225, 1350170222, 1350170220, 1350170215]} final : True mtd_id 4302 list_pids : [1350170873, 1350170869, 1350170864, 1350170835, 1350170801, 1350170797, 1350170795, 1350170792, 1350170789, 1350170784] Looping around the photos to save general results len do output : 1 /22061893Didn'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, '2724640') ('4302', '22061893', '1350170873', None, None, None, None, None, '2724640') ('4302', None, None, None, None, None, None, None, '2724640') ('4302', '22061893', '1350170869', None, None, None, None, None, '2724640') ('4302', None, None, None, None, None, None, None, '2724640') ('4302', '22061893', '1350170864', None, None, None, None, None, '2724640') ('4302', None, None, None, None, None, None, None, '2724640') ('4302', '22061893', '1350170835', None, None, None, None, None, '2724640') ('4302', None, None, None, None, None, None, None, '2724640') ('4302', '22061893', '1350170801', None, None, None, None, None, '2724640') ('4302', None, None, None, None, None, None, None, '2724640') ('4302', '22061893', '1350170797', None, None, None, None, None, '2724640') ('4302', None, None, None, None, None, None, None, '2724640') ('4302', '22061893', '1350170795', None, None, None, None, None, '2724640') ('4302', None, None, None, None, None, None, None, '2724640') ('4302', '22061893', '1350170792', None, None, None, None, None, '2724640') ('4302', None, None, None, None, None, None, None, '2724640') ('4302', '22061893', '1350170789', None, None, None, None, None, '2724640') ('4302', None, None, None, None, None, None, None, '2724640') ('4302', '22061893', '1350170784', None, None, None, None, None, '2724640') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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, '22061893', 'None', None, None, None, None, '2724640'), ('4302', '22061893', '1350170873', None, None, None, None, None, '2724640'), ('4302', '22061893', '1350170869', None, None, None, None, None, '2724640'), ('4302', '22061893', '1350170864', None, None, None, None, None, '2724640'), ('4302', '22061893', '1350170835', None, None, None, None, None, '2724640'), ('4302', '22061893', '1350170801', None, None, None, None, None, '2724640'), ('4302', '22061893', '1350170797', None, None, None, None, None, '2724640'), ('4302', '22061893', '1350170795', None, None, None, None, None, '2724640'), ('4302', '22061893', '1350170792', None, None, None, None, None, '2724640'), ('4302', '22061893', '1350170789', None, None, None, None, None, '2724640'), ('4302', '22061893', '1350170784', None, None, None, None, None, '2724640')] time used for this insertion : 0.013026714324951172 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3336448669433594 time spend to save output : 0.013326168060302734 total time spend for step 5 : 0.3469710350036621 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 (2724640) 2.42user 3.06system 0:09.57elapsed 57%CPU (0avgtext+0avgdata 160308maxresident)k 100520inputs+10552outputs (458major+74997minor)pagefaults 0swaps