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 : 2509789 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 (2742650) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2742650) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22257532 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2742650'] with mtr_portfolio_ids : ['22257532'] and first list_photo_ids : [] new path : /proc/2509789/ Name: python3 Umask: 0002 State: R (running) Tgid: 2509789 Ngid: 0 Pid: 2509789 PPid: 2509788 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2509789 NSpid: 2509789 NSpgid: 2506288 NSsid: 2506288 VmPeak: 1106928 kB VmSize: 1106928 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97632 kB VmRSS: 97632 kB RssAnon: 59764 kB RssFile: 37868 kB RssShmem: 0 kB VmData: 865676 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 584 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: 50 nonvoluntary_ctxt_switches: 38 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2509789', 'Ngid': '0', 'Pid': '2509789', 'PPid': '2509788', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2509789', 'NSpid': '2509789', 'NSpgid': '2506288', 'NSsid': '2506288', 'VmPeak': '1106928 kB', 'VmSize': '1106928 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97632 kB', 'VmRSS': '97632 kB', 'RssAnon': '59764 kB', 'RssFile': '37868 kB', 'RssShmem': '0 kB', 'VmData': '865676 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '584 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': '50', 'nonvoluntary_ctxt_switches': '38'} ('datou_batch_current', '2509789', '1106928', '0', '1106928', '865676', '97632', b'', 'marlene', '2742650') 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 (22257532) 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 (2742650 ) ) 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 (22257532) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1351502314, 'portfolio_id': 22257532}, {'photo_id': 1351502309, 'portfolio_id': 22257532}, {'photo_id': 1351502296, 'portfolio_id': 22257532}, {'photo_id': 1351502265, 'portfolio_id': 22257532}, {'photo_id': 1351502260, 'portfolio_id': 22257532}, {'photo_id': 1351502131, 'portfolio_id': 22257532}, {'photo_id': 1351502094, 'portfolio_id': 22257532}, {'photo_id': 1351502039, 'portfolio_id': 22257532}, {'photo_id': 1351502029, 'portfolio_id': 22257532}, {'photo_id': 1351502015, 'portfolio_id': 22257532}, {'photo_id': 1351501899, 'portfolio_id': 22257532}, {'photo_id': 1351501849, 'portfolio_id': 22257532}, {'photo_id': 1351501815, 'portfolio_id': 22257532}, {'photo_id': 1351501800, 'portfolio_id': 22257532}, {'photo_id': 1351501773, 'portfolio_id': 22257532}, {'photo_id': 1351501635, 'portfolio_id': 22257532}, {'photo_id': 1351501593, 'portfolio_id': 22257532}, {'photo_id': 1351501562, 'portfolio_id': 22257532}, {'photo_id': 1351501541, 'portfolio_id': 22257532}, {'photo_id': 1351501497, 'portfolio_id': 22257532}, {'photo_id': 1351501478, 'portfolio_id': 22257532}, {'photo_id': 1351501274, 'portfolio_id': 22257532}, {'photo_id': 1351501263, 'portfolio_id': 22257532}, {'photo_id': 1351501235, 'portfolio_id': 22257532}, {'photo_id': 1351501212, 'portfolio_id': 22257532}, {'photo_id': 1351501188, 'portfolio_id': 22257532}, {'photo_id': 1351501172, 'portfolio_id': 22257532}, {'photo_id': 1351500980, 'portfolio_id': 22257532}, {'photo_id': 1351500960, 'portfolio_id': 22257532}, {'photo_id': 1351500927, 'portfolio_id': 22257532}, {'photo_id': 1351498414, 'portfolio_id': 22257532}, {'photo_id': 1351498385, 'portfolio_id': 22257532}, {'photo_id': 1351498357, 'portfolio_id': 22257532}, {'photo_id': 1351498058, 'portfolio_id': 22257532}, {'photo_id': 1351497998, 'portfolio_id': 22257532}, {'photo_id': 1351497958, 'portfolio_id': 22257532}, {'photo_id': 1351497918, 'portfolio_id': 22257532}] map_portfolio_id_photo_id: {22257532: [1351502314, 1351502309, 1351502296, 1351502265, 1351502260, 1351502131, 1351502094, 1351502039, 1351502029, 1351502015, 1351501899, 1351501849, 1351501815, 1351501800, 1351501773, 1351501635, 1351501593, 1351501562, 1351501541, 1351501497, 1351501478, 1351501274, 1351501263, 1351501235, 1351501212, 1351501188, 1351501172, 1351500980, 1351500960, 1351500927, 1351498414, 1351498385, 1351498357, 1351498058, 1351497998, 1351497958, 1351497918]} ##### 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.01510930061340332 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Apr 11 08:14: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 (22257532) 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 : 22257532 get user id for portfolio 22257532 get sub ptf for main ptf 22257532, type 3726 and hashtags ['flou', 'cartonnette', 'Teint_Dans_La_Masse', 'metal', 'papier', 'mal_croppe', 'Carton_brun', 'Carton_gris', 'environnement', 'plastique', 'autre_refus', 'kraft'] 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`=22257532 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','cartonnette','Teint_Dans_La_Masse','metal','papier','mal_croppe','Carton_brun','Carton_gris','environnement','plastique','autre_refus','kraft')) 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`=22257532 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','cartonnette','Teint_Dans_La_Masse','metal','papier','mal_croppe','Carton_brun','Carton_gris','environnement','plastique','autre_refus','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 22257532, 'sub_port_id': 22257550, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14725874, 'last_updated_at': datetime.datetime(2025, 4, 11, 8, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 8, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 8, 9, 4)}, 'Carton_brun': {'main_port_id': 22257532, 'sub_port_id': 22257551, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14725875, 'last_updated_at': datetime.datetime(2025, 4, 11, 8, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 8, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 8, 9, 4)}, 'kraft': {'main_port_id': 22257532, 'sub_port_id': 22257552, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14725876, 'last_updated_at': datetime.datetime(2025, 4, 11, 8, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 8, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 8, 9, 4)}, 'metal': {'main_port_id': 22257532, 'sub_port_id': 22257553, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14725877, 'last_updated_at': datetime.datetime(2025, 4, 11, 8, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 8, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 8, 9, 4)}, 'papier': {'main_port_id': 22257532, 'sub_port_id': 22257554, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14725878, 'last_updated_at': datetime.datetime(2025, 4, 11, 8, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 8, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 8, 9, 4)}, 'autre_refus': {'main_port_id': 22257532, 'sub_port_id': 22257555, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14725879, 'last_updated_at': datetime.datetime(2025, 4, 11, 8, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 8, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 8, 9, 4)}, 'environnement': {'main_port_id': 22257532, 'sub_port_id': 22257556, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14725880, 'last_updated_at': datetime.datetime(2025, 4, 11, 8, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 8, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 8, 9, 4)}, 'mal_croppe': {'main_port_id': 22257532, 'sub_port_id': 22257557, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14725881, 'last_updated_at': datetime.datetime(2025, 4, 11, 8, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 8, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 8, 9, 4)}, 'flou': {'main_port_id': 22257532, 'sub_port_id': 22257558, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14725882, 'last_updated_at': datetime.datetime(2025, 4, 11, 8, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 8, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 8, 9, 4)}, 'Teint_Dans_La_Masse': {'main_port_id': 22257532, 'sub_port_id': 22257559, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14725883, 'last_updated_at': datetime.datetime(2025, 4, 11, 8, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 8, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 8, 9, 4)}, 'plastique': {'main_port_id': 22257532, 'sub_port_id': 22257560, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14725884, 'last_updated_at': datetime.datetime(2025, 4, 11, 8, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 8, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 8, 9, 4)}, 'cartonnette': {'main_port_id': 22257532, 'sub_port_id': 22257561, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14725885, 'last_updated_at': datetime.datetime(2025, 4, 11, 8, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 8, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 8, 9, 4)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22257550 , 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=22257532 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 (22257550) result : ((1351502570,), (1351502576,), (1351502622,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22257532) result : ((1351497918,), (1351497958,), (1351497998,), (1351498058,), (1351498357,), (1351498385,), (1351498414,), (1351500927,), (1351500960,), (1351500980,), (1351501172,), (1351501188,), (1351501212,), (1351501235,), (1351501263,), (1351501274,), (1351501478,), (1351501497,), (1351501541,), (1351501562,), (1351501593,), (1351501635,), (1351501773,), (1351501800,), (1351501815,), (1351501849,), (1351501899,), (1351502015,), (1351502029,), (1351502039,), (1351502094,), (1351502131,), (1351502260,), (1351502265,), (1351502296,), (1351502309,), (1351502314,)) 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 (1351501800) and cspi.crop_hashtag_id = chi.id; update MTRUser.mtr_photos set right_categories = 3302 where photo_id in (1351502576) update MTRBack.photos set right_categories = 3302 where photo_id in (1351502576) insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22257551 , 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=22257532 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 (22257551) result : ((1351500453,), (1351500455,), (1351500459,), (1351500461,), (1351502194,), (1351502664,), (1351502669,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22257532) result : ((1351497918,), (1351497958,), (1351497998,), (1351498058,), (1351498357,), (1351498385,), (1351498414,), (1351500927,), (1351500960,), (1351500980,), (1351501172,), (1351501188,), (1351501212,), (1351501235,), (1351501263,), (1351501274,), (1351501478,), (1351501497,), (1351501541,), (1351501562,), (1351501593,), (1351501635,), (1351501773,), (1351501800,), (1351501815,), (1351501849,), (1351501899,), (1351502015,), (1351502029,), (1351502039,), (1351502094,), (1351502131,), (1351502260,), (1351502265,), (1351502296,), (1351502309,), (1351502314,)) 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 (1351501800) 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 22257552 , 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=22257532 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 (22257552) result : ((1351502196,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22257532) result : ((1351497918,), (1351497958,), (1351497998,), (1351498058,), (1351498357,), (1351498385,), (1351498414,), (1351500927,), (1351500960,), (1351500980,), (1351501172,), (1351501188,), (1351501212,), (1351501235,), (1351501263,), (1351501274,), (1351501478,), (1351501497,), (1351501541,), (1351501562,), (1351501593,), (1351501635,), (1351501773,), (1351501800,), (1351501815,), (1351501849,), (1351501899,), (1351502015,), (1351502029,), (1351502039,), (1351502094,), (1351502131,), (1351502260,), (1351502265,), (1351502296,), (1351502309,), (1351502314,)) 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 (1351501800) 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 22257553 , 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=22257532 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 (22257553) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22257532) result : ((1351497918,), (1351497958,), (1351497998,), (1351498058,), (1351498357,), (1351498385,), (1351498414,), (1351500927,), (1351500960,), (1351500980,), (1351501172,), (1351501188,), (1351501212,), (1351501235,), (1351501263,), (1351501274,), (1351501478,), (1351501497,), (1351501541,), (1351501562,), (1351501593,), (1351501635,), (1351501773,), (1351501800,), (1351501815,), (1351501849,), (1351501899,), (1351502015,), (1351502029,), (1351502039,), (1351502094,), (1351502131,), (1351502260,), (1351502265,), (1351502296,), (1351502309,), (1351502314,)) 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 (1351501800) 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 22257554 , 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=22257532 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 (22257554) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22257532) result : ((1351497918,), (1351497958,), (1351497998,), (1351498058,), (1351498357,), (1351498385,), (1351498414,), (1351500927,), (1351500960,), (1351500980,), (1351501172,), (1351501188,), (1351501212,), (1351501235,), (1351501263,), (1351501274,), (1351501478,), (1351501497,), (1351501541,), (1351501562,), (1351501593,), (1351501635,), (1351501773,), (1351501800,), (1351501815,), (1351501849,), (1351501899,), (1351502015,), (1351502029,), (1351502039,), (1351502094,), (1351502131,), (1351502260,), (1351502265,), (1351502296,), (1351502309,), (1351502314,)) 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 (1351501800) 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 22257555 , 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=22257532 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 (22257555) result : ((1351499254,), (1351499256,), (1351500409,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22257532) result : ((1351497918,), (1351497958,), (1351497998,), (1351498058,), (1351498357,), (1351498385,), (1351498414,), (1351500927,), (1351500960,), (1351500980,), (1351501172,), (1351501188,), (1351501212,), (1351501235,), (1351501263,), (1351501274,), (1351501478,), (1351501497,), (1351501541,), (1351501562,), (1351501593,), (1351501635,), (1351501773,), (1351501800,), (1351501815,), (1351501849,), (1351501899,), (1351502015,), (1351502029,), (1351502039,), (1351502094,), (1351502131,), (1351502260,), (1351502265,), (1351502296,), (1351502309,), (1351502314,)) 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 (1351501800) 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 22257556 , 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=22257532 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 (22257556) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22257532) result : ((1351497918,), (1351497958,), (1351497998,), (1351498058,), (1351498357,), (1351498385,), (1351498414,), (1351500927,), (1351500960,), (1351500980,), (1351501172,), (1351501188,), (1351501212,), (1351501235,), (1351501263,), (1351501274,), (1351501478,), (1351501497,), (1351501541,), (1351501562,), (1351501593,), (1351501635,), (1351501773,), (1351501800,), (1351501815,), (1351501849,), (1351501899,), (1351502015,), (1351502029,), (1351502039,), (1351502094,), (1351502131,), (1351502260,), (1351502265,), (1351502296,), (1351502309,), (1351502314,)) 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 (1351501800) 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 22257557 , 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=22257532 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 (22257557) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22257532) result : ((1351497918,), (1351497958,), (1351497998,), (1351498058,), (1351498357,), (1351498385,), (1351498414,), (1351500927,), (1351500960,), (1351500980,), (1351501172,), (1351501188,), (1351501212,), (1351501235,), (1351501263,), (1351501274,), (1351501478,), (1351501497,), (1351501541,), (1351501562,), (1351501593,), (1351501635,), (1351501773,), (1351501800,), (1351501815,), (1351501849,), (1351501899,), (1351502015,), (1351502029,), (1351502039,), (1351502094,), (1351502131,), (1351502260,), (1351502265,), (1351502296,), (1351502309,), (1351502314,)) 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 (1351501800) 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 22257558 , 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=22257532 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 (22257558) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22257532) result : ((1351497918,), (1351497958,), (1351497998,), (1351498058,), (1351498357,), (1351498385,), (1351498414,), (1351500927,), (1351500960,), (1351500980,), (1351501172,), (1351501188,), (1351501212,), (1351501235,), (1351501263,), (1351501274,), (1351501478,), (1351501497,), (1351501541,), (1351501562,), (1351501593,), (1351501635,), (1351501773,), (1351501800,), (1351501815,), (1351501849,), (1351501899,), (1351502015,), (1351502029,), (1351502039,), (1351502094,), (1351502131,), (1351502260,), (1351502265,), (1351502296,), (1351502309,), (1351502314,)) 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 (1351501800) 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 22257559 , 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=22257532 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 (22257559) result : ((1351499241,), (1351499243,), (1351500393,), (1351500396,), (1351500399,), (1351502172,), (1351502173,), (1351502175,), (1351502572,), (1351502573,), (1351502604,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22257532) result : ((1351497918,), (1351497958,), (1351497998,), (1351498058,), (1351498357,), (1351498385,), (1351498414,), (1351500927,), (1351500960,), (1351500980,), (1351501172,), (1351501188,), (1351501212,), (1351501235,), (1351501263,), (1351501274,), (1351501478,), (1351501497,), (1351501541,), (1351501562,), (1351501593,), (1351501635,), (1351501773,), (1351501800,), (1351501815,), (1351501849,), (1351501899,), (1351502015,), (1351502029,), (1351502039,), (1351502094,), (1351502131,), (1351502260,), (1351502265,), (1351502296,), (1351502309,), (1351502314,)) 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 (1351501800) 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 22257560 , 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=22257532 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 (22257560) result : ((1351502698,), (1351502703,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22257532) result : ((1351497918,), (1351497958,), (1351497998,), (1351498058,), (1351498357,), (1351498385,), (1351498414,), (1351500927,), (1351500960,), (1351500980,), (1351501172,), (1351501188,), (1351501212,), (1351501235,), (1351501263,), (1351501274,), (1351501478,), (1351501497,), (1351501541,), (1351501562,), (1351501593,), (1351501635,), (1351501773,), (1351501800,), (1351501815,), (1351501849,), (1351501899,), (1351502015,), (1351502029,), (1351502039,), (1351502094,), (1351502131,), (1351502260,), (1351502265,), (1351502296,), (1351502309,), (1351502314,)) 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 (1351501800) 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 22257561 , 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=22257532 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 (22257561) result : ((1351500415,), (1351502186,), (1351502187,), (1351502188,), (1351502189,), (1351502612,), (1351502626,), (1351502630,), (1351502647,), (1351502648,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22257532) result : ((1351497918,), (1351497958,), (1351497998,), (1351498058,), (1351498357,), (1351498385,), (1351498414,), (1351500927,), (1351500960,), (1351500980,), (1351501172,), (1351501188,), (1351501212,), (1351501235,), (1351501263,), (1351501274,), (1351501478,), (1351501497,), (1351501541,), (1351501562,), (1351501593,), (1351501635,), (1351501773,), (1351501800,), (1351501815,), (1351501849,), (1351501899,), (1351502015,), (1351502029,), (1351502039,), (1351502094,), (1351502131,), (1351502260,), (1351502265,), (1351502296,), (1351502309,), (1351502314,)) 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 (1351501800) 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`=22257532 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','cartonnette','Teint_Dans_La_Masse','metal','papier','mal_croppe','Carton_brun','Carton_gris','environnement','plastique','autre_refus','kraft')) 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`=22257532 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','cartonnette','Teint_Dans_La_Masse','metal','papier','mal_croppe','Carton_brun','Carton_gris','environnement','plastique','autre_refus','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 22257532, 'sub_port_id': 22257563, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14725886, 'last_updated_at': datetime.datetime(2025, 4, 11, 8, 9, 10), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 8, 9, 10), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 8, 9, 10)}, 'Carton_brun': {'main_port_id': 22257532, 'sub_port_id': 22257564, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14725887, 'last_updated_at': datetime.datetime(2025, 4, 11, 8, 9, 10), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 8, 9, 10), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 8, 9, 10)}, 'kraft': {'main_port_id': 22257532, 'sub_port_id': 22257565, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14725888, 'last_updated_at': datetime.datetime(2025, 4, 11, 8, 9, 10), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 8, 9, 10), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 8, 9, 10)}, 'metal': {'main_port_id': 22257532, 'sub_port_id': 22257566, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14725889, 'last_updated_at': datetime.datetime(2025, 4, 11, 8, 9, 10), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 8, 9, 10), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 8, 9, 10)}, 'papier': {'main_port_id': 22257532, 'sub_port_id': 22257567, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14725890, 'last_updated_at': datetime.datetime(2025, 4, 11, 8, 9, 10), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 8, 9, 10), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 8, 9, 10)}, 'autre_refus': {'main_port_id': 22257532, 'sub_port_id': 22257568, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14725891, 'last_updated_at': datetime.datetime(2025, 4, 11, 8, 9, 10), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 8, 9, 10), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 8, 9, 10)}, 'environnement': {'main_port_id': 22257532, 'sub_port_id': 22257569, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14725892, 'last_updated_at': datetime.datetime(2025, 4, 11, 8, 9, 10), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 8, 9, 10), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 8, 9, 10)}, 'mal_croppe': {'main_port_id': 22257532, 'sub_port_id': 22257570, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14725893, 'last_updated_at': datetime.datetime(2025, 4, 11, 8, 9, 10), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 8, 9, 10), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 8, 9, 10)}, 'flou': {'main_port_id': 22257532, 'sub_port_id': 22257571, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14725894, 'last_updated_at': datetime.datetime(2025, 4, 11, 8, 9, 10), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 8, 9, 10), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 8, 9, 10)}, 'Teint_Dans_La_Masse': {'main_port_id': 22257532, 'sub_port_id': 22257572, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14725895, 'last_updated_at': datetime.datetime(2025, 4, 11, 8, 9, 10), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 8, 9, 10), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 8, 9, 10)}, 'plastique': {'main_port_id': 22257532, 'sub_port_id': 22257573, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14725896, 'last_updated_at': datetime.datetime(2025, 4, 11, 8, 9, 10), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 8, 9, 10), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 8, 9, 10)}, 'cartonnette': {'main_port_id': 22257532, 'sub_port_id': 22257574, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14725897, 'last_updated_at': datetime.datetime(2025, 4, 11, 8, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 8, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 8, 9, 10)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22257563,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22257550 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22257564,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22257551 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22257565,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22257552 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22257566,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22257553 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22257567,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22257554 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22257568,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22257555 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22257569,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22257556 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22257570,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22257557 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22257571,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22257558 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22257572,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22257559 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22257573,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22257560 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22257574,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22257561 lien utilise dans velours : https://www.fotonower.com/velours/22257563,22257564,22257565,22257566,22257567,22257568,22257569,22257570,22257571,22257572,22257573,22257574?tags=Carton_gris,Carton_brun,kraft,metal,papier,autre_refus,environnement,mal_croppe,flou,Teint_Dans_La_Masse,plastique,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22257532]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1351502314, 1351502309, 1351502296, 1351502265, 1351502260, 1351502131, 1351502094, 1351502039, 1351502029, 1351502015] map_info['map_portfolio_photo'] : {22257532: [1351502314, 1351502309, 1351502296, 1351502265, 1351502260, 1351502131, 1351502094, 1351502039, 1351502029, 1351502015, 1351501899, 1351501849, 1351501815, 1351501800, 1351501773, 1351501635, 1351501593, 1351501562, 1351501541, 1351501497, 1351501478, 1351501274, 1351501263, 1351501235, 1351501212, 1351501188, 1351501172, 1351500980, 1351500960, 1351500927, 1351498414, 1351498385, 1351498357, 1351498058, 1351497998, 1351497958, 1351497918]} final : False mtd_id 4302 list_pids : [1351502314, 1351502309, 1351502296, 1351502265, 1351502260, 1351502131, 1351502094, 1351502039, 1351502029, 1351502015] Looping around the photos to save general results len do output : 1 /22257532. 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, '2742650') ('4302', '22257532', '1351502314', None, None, None, None, None, '2742650') ('4302', None, None, None, None, None, None, None, '2742650') ('4302', '22257532', '1351502309', None, None, None, None, None, '2742650') ('4302', None, None, None, None, None, None, None, '2742650') ('4302', '22257532', '1351502296', None, None, None, None, None, '2742650') ('4302', None, None, None, None, None, None, None, '2742650') ('4302', '22257532', '1351502265', None, None, None, None, None, '2742650') ('4302', None, None, None, None, None, None, None, '2742650') ('4302', '22257532', '1351502260', None, None, None, None, None, '2742650') ('4302', None, None, None, None, None, None, None, '2742650') ('4302', '22257532', '1351502131', None, None, None, None, None, '2742650') ('4302', None, None, None, None, None, None, None, '2742650') ('4302', '22257532', '1351502094', None, None, None, None, None, '2742650') ('4302', None, None, None, None, None, None, None, '2742650') ('4302', '22257532', '1351502039', None, None, None, None, None, '2742650') ('4302', None, None, None, None, None, None, None, '2742650') ('4302', '22257532', '1351502029', None, None, None, None, None, '2742650') ('4302', None, None, None, None, None, None, None, '2742650') ('4302', '22257532', '1351502015', None, None, None, None, None, '2742650') 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, '22257532', "{'Carton_gris': 22257550, 'Carton_brun': 22257551, 'kraft': 22257552, 'metal': 22257553, 'papier': 22257554, 'autre_refus': 22257555, 'environnement': 22257556, 'mal_croppe': 22257557, 'flou': 22257558, 'Teint_Dans_La_Masse': 22257559, 'plastique': 22257560, 'cartonnette': 22257561}", None, None, None, None, '2742650'), ('4302', '22257532', '1351502314', None, None, None, None, None, '2742650'), ('4302', '22257532', '1351502309', None, None, None, None, None, '2742650'), ('4302', '22257532', '1351502296', None, None, None, None, None, '2742650'), ('4302', '22257532', '1351502265', None, None, None, None, None, '2742650'), ('4302', '22257532', '1351502260', None, None, None, None, None, '2742650'), ('4302', '22257532', '1351502131', None, None, None, None, None, '2742650'), ('4302', '22257532', '1351502094', None, None, None, None, None, '2742650'), ('4302', '22257532', '1351502039', None, None, None, None, None, '2742650'), ('4302', '22257532', '1351502029', None, None, None, None, None, '2742650'), ('4302', '22257532', '1351502015', None, None, None, None, None, '2742650')] time used for this insertion : 0.013823509216308594 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.7073569297790527 time spend to save output : 0.014148235321044922 total time spend for step 1 : 0.7215051651000977 step2:final Fri Apr 11 08:14: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 (22257532) 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 22257532 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1351498058,1351497998,1351497958,1351497918,1351498414,1351498385,1351498357,1351500980,1351500960,1351500927,1351501274,1351501263,1351501235,1351501212,1351501188,1351501172,1351501635,1351501593,1351501562,1351501541,1351501497,1351501478,1351501899,1351501849,1351501815,1351501800,1351501773,1351502131,1351502094,1351502039,1351502029,1351502015,1351502314,1351502309,1351502296,1351502265,1351502260); 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([22257532]) Inside saveOutput : final : False verbose : True original output for save of step final : {1351502314: ('0.02618922773236875',), 1351502309: ('0.02618922773236875',), 1351502296: ('0.02618922773236875',), 1351502265: ('0.02618922773236875',), 1351502260: ('0.02618922773236875',), 1351502131: ('0.02618922773236875',), 1351502094: ('0.02618922773236875',), 1351502039: ('0.02618922773236875',), 1351502029: ('0.02618922773236875',), 1351502015: ('0.02618922773236875',)} new output for save of step final : {1351502314: ('0.02618922773236875',), 1351502309: ('0.02618922773236875',), 1351502296: ('0.02618922773236875',), 1351502265: ('0.02618922773236875',), 1351502260: ('0.02618922773236875',), 1351502131: ('0.02618922773236875',), 1351502094: ('0.02618922773236875',), 1351502039: ('0.02618922773236875',), 1351502029: ('0.02618922773236875',), 1351502015: ('0.02618922773236875',)} [1351502314, 1351502309, 1351502296, 1351502265, 1351502260, 1351502131, 1351502094, 1351502039, 1351502029, 1351502015] map_info['map_portfolio_photo'] : {22257532: [1351502314, 1351502309, 1351502296, 1351502265, 1351502260, 1351502131, 1351502094, 1351502039, 1351502029, 1351502015, 1351501899, 1351501849, 1351501815, 1351501800, 1351501773, 1351501635, 1351501593, 1351501562, 1351501541, 1351501497, 1351501478, 1351501274, 1351501263, 1351501235, 1351501212, 1351501188, 1351501172, 1351500980, 1351500960, 1351500927, 1351498414, 1351498385, 1351498357, 1351498058, 1351497998, 1351497958, 1351497918]} final : False mtd_id 4302 list_pids : [1351502314, 1351502309, 1351502296, 1351502265, 1351502260, 1351502131, 1351502094, 1351502039, 1351502029, 1351502015] Looping around the photos to save general results len do output : 10 /1351502314.Didn't retrieve data . /1351502309.Didn't retrieve data . /1351502296.Didn't retrieve data . /1351502265.Didn't retrieve data . /1351502260.Didn't retrieve data . /1351502131.Didn't retrieve data . /1351502094.Didn't retrieve data . /1351502039.Didn't retrieve data . /1351502029.Didn't retrieve data . /1351502015.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, '2742650') ('4302', '22257532', '1351502314', None, None, None, None, None, '2742650') ('4302', None, None, None, None, None, None, None, '2742650') ('4302', '22257532', '1351502309', None, None, None, None, None, '2742650') ('4302', None, None, None, None, None, None, None, '2742650') ('4302', '22257532', '1351502296', None, None, None, None, None, '2742650') ('4302', None, None, None, None, None, None, None, '2742650') ('4302', '22257532', '1351502265', None, None, None, None, None, '2742650') ('4302', None, None, None, None, None, None, None, '2742650') ('4302', '22257532', '1351502260', None, None, None, None, None, '2742650') ('4302', None, None, None, None, None, None, None, '2742650') ('4302', '22257532', '1351502131', None, None, None, None, None, '2742650') ('4302', None, None, None, None, None, None, None, '2742650') ('4302', '22257532', '1351502094', None, None, None, None, None, '2742650') ('4302', None, None, None, None, None, None, None, '2742650') ('4302', '22257532', '1351502039', None, None, None, None, None, '2742650') ('4302', None, None, None, None, None, None, None, '2742650') ('4302', '22257532', '1351502029', None, None, None, None, None, '2742650') ('4302', None, None, None, None, None, None, None, '2742650') ('4302', '22257532', '1351502015', None, None, None, None, None, '2742650') 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', '22257532', '1351502314', '0.02618922773236875', None, None, None, None, '2742650'), ('4302', '22257532', '1351502309', '0.02618922773236875', None, None, None, None, '2742650'), ('4302', '22257532', '1351502296', '0.02618922773236875', None, None, None, None, '2742650'), ('4302', '22257532', '1351502265', '0.02618922773236875', None, None, None, None, '2742650'), ('4302', '22257532', '1351502260', '0.02618922773236875', None, None, None, None, '2742650'), ('4302', '22257532', '1351502131', '0.02618922773236875', None, None, None, None, '2742650'), ('4302', '22257532', '1351502094', '0.02618922773236875', None, None, None, None, '2742650'), ('4302', '22257532', '1351502039', '0.02618922773236875', None, None, None, None, '2742650'), ('4302', '22257532', '1351502029', '0.02618922773236875', None, None, None, None, '2742650'), ('4302', '22257532', '1351502015', '0.02618922773236875', None, None, None, None, '2742650')] time used for this insertion : 0.013329267501831055 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.12486386299133301 time spend to save output : 0.014036893844604492 total time spend for step 2 : 0.1389007568359375 step3:velours_tree Fri Apr 11 08:15: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 complete output_args for input 0 : {22257532: [{'Carton_gris': 22257550, 'Carton_brun': 22257551, 'kraft': 22257552, 'metal': 22257553, 'papier': 22257554, 'autre_refus': 22257555, 'environnement': 22257556, 'mal_croppe': 22257557, 'flou': 22257558, 'Teint_Dans_La_Masse': 22257559, 'plastique': 22257560, 'cartonnette': 22257561}]} input_args_next_step : {22257532: ()} output_args : {22257532: [{'Carton_gris': 22257550, 'Carton_brun': 22257551, 'kraft': 22257552, 'metal': 22257553, 'papier': 22257554, 'autre_refus': 22257555, 'environnement': 22257556, 'mal_croppe': 22257557, 'flou': 22257558, 'Teint_Dans_La_Masse': 22257559, 'plastique': 22257560, 'cartonnette': 22257561}]} args : 22257532 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 : ({'Carton_gris': 22257550, 'Carton_brun': 22257551, 'kraft': 22257552, 'metal': 22257553, 'papier': 22257554, 'autre_refus': 22257555, 'environnement': 22257556, 'mal_croppe': 22257557, 'flou': 22257558, 'Teint_Dans_La_Masse': 22257559, 'plastique': 22257560, 'cartonnette': 22257561},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22257532) 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([22257532]) 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.30750250816345215 time spend to save output : 4.220008850097656e-05 total time spend for step 3 : 0.3075447082519531 step4:send_mail_cod Fri Apr 11 08:15: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 : {1351502314: ('0.02618922773236875',), 1351502309: ('0.02618922773236875',), 1351502296: ('0.02618922773236875',), 1351502265: ('0.02618922773236875',), 1351502260: ('0.02618922773236875',), 1351502131: ('0.02618922773236875',), 1351502094: ('0.02618922773236875',), 1351502039: ('0.02618922773236875',), 1351502029: ('0.02618922773236875',), 1351502015: ('0.02618922773236875',)} input_args_next_step : {1351502314: ()} output_args : {1351502314: ('0.02618922773236875',), 1351502309: ('0.02618922773236875',), 1351502296: ('0.02618922773236875',), 1351502265: ('0.02618922773236875',), 1351502260: ('0.02618922773236875',), 1351502131: ('0.02618922773236875',), 1351502094: ('0.02618922773236875',), 1351502039: ('0.02618922773236875',), 1351502029: ('0.02618922773236875',), 1351502015: ('0.02618922773236875',)} args : 1351502314 depend.output_id : 0 input_args_next_step : {1351502314: ('0.02618922773236875',), 1351502309: ()} output_args : {1351502314: ('0.02618922773236875',), 1351502309: ('0.02618922773236875',), 1351502296: ('0.02618922773236875',), 1351502265: ('0.02618922773236875',), 1351502260: ('0.02618922773236875',), 1351502131: ('0.02618922773236875',), 1351502094: ('0.02618922773236875',), 1351502039: ('0.02618922773236875',), 1351502029: ('0.02618922773236875',), 1351502015: ('0.02618922773236875',)} args : 1351502309 depend.output_id : 0 input_args_next_step : {1351502314: ('0.02618922773236875',), 1351502309: ('0.02618922773236875',), 1351502296: ()} output_args : {1351502314: ('0.02618922773236875',), 1351502309: ('0.02618922773236875',), 1351502296: ('0.02618922773236875',), 1351502265: ('0.02618922773236875',), 1351502260: ('0.02618922773236875',), 1351502131: ('0.02618922773236875',), 1351502094: ('0.02618922773236875',), 1351502039: ('0.02618922773236875',), 1351502029: ('0.02618922773236875',), 1351502015: ('0.02618922773236875',)} args : 1351502296 depend.output_id : 0 input_args_next_step : {1351502314: ('0.02618922773236875',), 1351502309: ('0.02618922773236875',), 1351502296: ('0.02618922773236875',), 1351502265: ()} output_args : {1351502314: ('0.02618922773236875',), 1351502309: ('0.02618922773236875',), 1351502296: ('0.02618922773236875',), 1351502265: ('0.02618922773236875',), 1351502260: ('0.02618922773236875',), 1351502131: ('0.02618922773236875',), 1351502094: ('0.02618922773236875',), 1351502039: ('0.02618922773236875',), 1351502029: ('0.02618922773236875',), 1351502015: ('0.02618922773236875',)} args : 1351502265 depend.output_id : 0 input_args_next_step : {1351502314: ('0.02618922773236875',), 1351502309: ('0.02618922773236875',), 1351502296: ('0.02618922773236875',), 1351502265: ('0.02618922773236875',), 1351502260: ()} output_args : {1351502314: ('0.02618922773236875',), 1351502309: ('0.02618922773236875',), 1351502296: ('0.02618922773236875',), 1351502265: ('0.02618922773236875',), 1351502260: ('0.02618922773236875',), 1351502131: ('0.02618922773236875',), 1351502094: ('0.02618922773236875',), 1351502039: ('0.02618922773236875',), 1351502029: ('0.02618922773236875',), 1351502015: ('0.02618922773236875',)} args : 1351502260 depend.output_id : 0 input_args_next_step : {1351502314: ('0.02618922773236875',), 1351502309: ('0.02618922773236875',), 1351502296: ('0.02618922773236875',), 1351502265: ('0.02618922773236875',), 1351502260: ('0.02618922773236875',), 1351502131: ()} output_args : {1351502314: ('0.02618922773236875',), 1351502309: ('0.02618922773236875',), 1351502296: ('0.02618922773236875',), 1351502265: ('0.02618922773236875',), 1351502260: ('0.02618922773236875',), 1351502131: ('0.02618922773236875',), 1351502094: ('0.02618922773236875',), 1351502039: ('0.02618922773236875',), 1351502029: ('0.02618922773236875',), 1351502015: ('0.02618922773236875',)} args : 1351502131 depend.output_id : 0 input_args_next_step : {1351502314: ('0.02618922773236875',), 1351502309: ('0.02618922773236875',), 1351502296: ('0.02618922773236875',), 1351502265: ('0.02618922773236875',), 1351502260: ('0.02618922773236875',), 1351502131: ('0.02618922773236875',), 1351502094: ()} output_args : {1351502314: ('0.02618922773236875',), 1351502309: ('0.02618922773236875',), 1351502296: ('0.02618922773236875',), 1351502265: ('0.02618922773236875',), 1351502260: ('0.02618922773236875',), 1351502131: ('0.02618922773236875',), 1351502094: ('0.02618922773236875',), 1351502039: ('0.02618922773236875',), 1351502029: ('0.02618922773236875',), 1351502015: ('0.02618922773236875',)} args : 1351502094 depend.output_id : 0 input_args_next_step : {1351502314: ('0.02618922773236875',), 1351502309: ('0.02618922773236875',), 1351502296: ('0.02618922773236875',), 1351502265: ('0.02618922773236875',), 1351502260: ('0.02618922773236875',), 1351502131: ('0.02618922773236875',), 1351502094: ('0.02618922773236875',), 1351502039: ()} output_args : {1351502314: ('0.02618922773236875',), 1351502309: ('0.02618922773236875',), 1351502296: ('0.02618922773236875',), 1351502265: ('0.02618922773236875',), 1351502260: ('0.02618922773236875',), 1351502131: ('0.02618922773236875',), 1351502094: ('0.02618922773236875',), 1351502039: ('0.02618922773236875',), 1351502029: ('0.02618922773236875',), 1351502015: ('0.02618922773236875',)} args : 1351502039 depend.output_id : 0 input_args_next_step : {1351502314: ('0.02618922773236875',), 1351502309: ('0.02618922773236875',), 1351502296: ('0.02618922773236875',), 1351502265: ('0.02618922773236875',), 1351502260: ('0.02618922773236875',), 1351502131: ('0.02618922773236875',), 1351502094: ('0.02618922773236875',), 1351502039: ('0.02618922773236875',), 1351502029: ()} output_args : {1351502314: ('0.02618922773236875',), 1351502309: ('0.02618922773236875',), 1351502296: ('0.02618922773236875',), 1351502265: ('0.02618922773236875',), 1351502260: ('0.02618922773236875',), 1351502131: ('0.02618922773236875',), 1351502094: ('0.02618922773236875',), 1351502039: ('0.02618922773236875',), 1351502029: ('0.02618922773236875',), 1351502015: ('0.02618922773236875',)} args : 1351502029 depend.output_id : 0 input_args_next_step : {1351502314: ('0.02618922773236875',), 1351502309: ('0.02618922773236875',), 1351502296: ('0.02618922773236875',), 1351502265: ('0.02618922773236875',), 1351502260: ('0.02618922773236875',), 1351502131: ('0.02618922773236875',), 1351502094: ('0.02618922773236875',), 1351502039: ('0.02618922773236875',), 1351502029: ('0.02618922773236875',), 1351502015: ()} output_args : {1351502314: ('0.02618922773236875',), 1351502309: ('0.02618922773236875',), 1351502296: ('0.02618922773236875',), 1351502265: ('0.02618922773236875',), 1351502260: ('0.02618922773236875',), 1351502131: ('0.02618922773236875',), 1351502094: ('0.02618922773236875',), 1351502039: ('0.02618922773236875',), 1351502029: ('0.02618922773236875',), 1351502015: ('0.02618922773236875',)} args : 1351502015 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 : {22257532: [{'Carton_gris': 22257550, 'Carton_brun': 22257551, 'kraft': 22257552, 'metal': 22257553, 'papier': 22257554, 'autre_refus': 22257555, 'environnement': 22257556, 'mal_croppe': 22257557, 'flou': 22257558, 'Teint_Dans_La_Masse': 22257559, 'plastique': 22257560, 'cartonnette': 22257561}]} input_args_next_step : {1351502314: ('0.02618922773236875',), 1351502309: ('0.02618922773236875',), 1351502296: ('0.02618922773236875',), 1351502265: ('0.02618922773236875',), 1351502260: ('0.02618922773236875',), 1351502131: ('0.02618922773236875',), 1351502094: ('0.02618922773236875',), 1351502039: ('0.02618922773236875',), 1351502029: ('0.02618922773236875',), 1351502015: ('0.02618922773236875',), 22257532: ()} output_args : {22257532: [{'Carton_gris': 22257550, 'Carton_brun': 22257551, 'kraft': 22257552, 'metal': 22257553, 'papier': 22257554, 'autre_refus': 22257555, 'environnement': 22257556, 'mal_croppe': 22257557, 'flou': 22257558, 'Teint_Dans_La_Masse': 22257559, 'plastique': 22257560, 'cartonnette': 22257561}]} args : 22257532 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.02618922773236875',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22257532) 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 (1351502314,1351502309,1351502296,1351502265,1351502260,1351502131,1351502094,1351502039,1351502029,1351502015) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1351502015 begin to download photo : 1351502094 begin to download photo : 1351502265 begin to download photo : 1351502314 download finish for photo 1351502265 begin to download photo : 1351502296 download finish for photo 1351502094 begin to download photo : 1351502131 download finish for photo 1351502314 download finish for photo 1351502015 begin to download photo : 1351502029 download finish for photo 1351502296 begin to download photo : 1351502309 download finish for photo 1351502131 begin to download photo : 1351502260 download finish for photo 1351502029 begin to download photo : 1351502039 download finish for photo 1351502309 download finish for photo 1351502260 download finish for photo 1351502039 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_P22257532_11-04-2025_08_15_00.pdf 22257552 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=22257552 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351502196: '1744351872_1172989_1351501188_b066ddb89ed05450bdcf9ad83501fc54_rle_crop_3756233086_0.png'} change filename to text .imagette222575521744352100/ imagette222575521744352100/1744351872_1172989_1351501188_b066ddb89ed05450bdcf9ad83501fc54_rle_crop_3756233086_0.png.png imagette222575531744352100/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/c486175189f46eb69120098c17c5a2f9_47719495.png imagette222575521744352100 22257553 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=22257553 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222575531744352100 22257555 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=22257555 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351499254: '1744351407_1462070_1351498385_36882bdb8706fa05c4785429d3d1cceb_rle_crop_3756224722_0.png', 1351499256: '1744351407_1462070_1351498385_36882bdb8706fa05c4785429d3d1cceb_rle_crop_3756224714_0.png', 1351500409: '1744351526_1465544_1351497958_314bc62982824ac330184ee28665bbb3_rle_crop_3756225879_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/72789d6be6a3b2db6b8e279703433385_91199915.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/3b80b6dcabb8fd67a26df753cc96515a_29899333.png change filename to text .imagette222575551744352100/ imagette222575551744352100/1744351407_1462070_1351498385_36882bdb8706fa05c4785429d3d1cceb_rle_crop_3756224714_0.png.png imagette222575551744352100/1744351526_1465544_1351497958_314bc62982824ac330184ee28665bbb3_rle_crop_3756225879_0.png.png imagette222575551744352100/1744351407_1462070_1351498385_36882bdb8706fa05c4785429d3d1cceb_rle_crop_3756224722_0.png.png imagette222575571744352100/ imagette222575581744352100/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/6b45483f5e402ab2f2efeb09250c75ac_99101358.png imagette222575551744352100 22257557 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=22257557 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222575571744352100 22257558 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=22257558 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222575581744352100 22257560 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=22257560 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351502698: '1744352005_1474206_1351501849_5088c3e426798a62cd46af43e59137cd_rle_crop_3756234238_0.png', 1351502703: '1744352005_1474206_1351501815_83bf4471429043c951561cea2daac773_rle_crop_3756234279_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/e7f502a3bdd30c865a5ee5569c3645b4_16712951.png change filename to text .imagette222575601744352101/ imagette222575601744352101/1744352005_1474206_1351501815_83bf4471429043c951561cea2daac773_rle_crop_3756234279_0.png.png imagette222575601744352101/1744352005_1474206_1351501849_5088c3e426798a62cd46af43e59137cd_rle_crop_3756234238_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/85dc7bf0e2958da3aaf52c8c1641ee3a_94716166.png imagette222575601744352101 22257561 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=22257561 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351500415: '1744351526_1465544_1351497918_97469edc976be2427305101a11ea6d60_rle_crop_3756226004_0.png', 1351502186: '1744351872_1172989_1351501212_0a1f3fbc197a33816de8fecf1370fbce_rle_crop_3756233069_0.png', 1351502187: '1744351872_1172989_1351501188_b066ddb89ed05450bdcf9ad83501fc54_rle_crop_3756233090_0.png', 1351502188: '1744351872_1172989_1351501172_e6e7ae55a67e676657d51ea91cb8ba44_rle_crop_3756233163_0.png', 1351502189: '1744351872_1172989_1351501172_e6e7ae55a67e676657d51ea91cb8ba44_rle_crop_3756233164_0.png', 1351502612: '1744352005_1474206_1351501849_5088c3e426798a62cd46af43e59137cd_rle_crop_3756234242_0.png', 1351502626: '1744352005_1474206_1351501815_83bf4471429043c951561cea2daac773_rle_crop_3756234273_0.png', 1351502630: '1744352005_1474206_1351501815_83bf4471429043c951561cea2daac773_rle_crop_3756234266_0.png', 1351502647: '1744351993_1174763_1351501899_c31cbed042760c277b0b2e3b4a7b6229_rle_crop_3756234250_0.png', 1351502648: '1744351993_1174763_1351501478_cb6737c0a3a1d2173308b0c27f6c8956_rle_crop_3756234357_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/107293322e9947ac05003e4195e3f1b5_14078794.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/218725349a22e876fa5b953ab024f22f_81817399.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/150c91386025e57bc6538203b34e6f86_22862241.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/e2e14dbd98fac37ab1495cdeea8785bc_28282771.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/264316dc60a081a9c3917d861c612210_11875566.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/510dff26ae2ee44058df448b7341ce37_11708713.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/c0f163ba8118c43af53e6c6f26e4193a_27418516.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/09d85f30a1ba3a92389492ffa43bf0cc_14133141.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/0996c52ef7d57da2bc7c51c32c8f9f32_37044121.png change filename to text .imagette222575611744352101/ imagette222575611744352101/1744351872_1172989_1351501172_e6e7ae55a67e676657d51ea91cb8ba44_rle_crop_3756233163_0.png.png imagette222575611744352101/1744351526_1465544_1351497918_97469edc976be2427305101a11ea6d60_rle_crop_3756226004_0.png.png imagette222575611744352101/1744351993_1174763_1351501478_cb6737c0a3a1d2173308b0c27f6c8956_rle_crop_3756234357_0.png.png imagette222575611744352101/1744352005_1474206_1351501815_83bf4471429043c951561cea2daac773_rle_crop_3756234273_0.png.png imagette222575611744352101/1744351872_1172989_1351501212_0a1f3fbc197a33816de8fecf1370fbce_rle_crop_3756233069_0.png.png imagette222575611744352101/1744351872_1172989_1351501172_e6e7ae55a67e676657d51ea91cb8ba44_rle_crop_3756233164_0.png.png imagette222575611744352101/1744351872_1172989_1351501188_b066ddb89ed05450bdcf9ad83501fc54_rle_crop_3756233090_0.png.png imagette222575611744352101/1744352005_1474206_1351501849_5088c3e426798a62cd46af43e59137cd_rle_crop_3756234242_0.png.png imagette222575611744352101/1744352005_1474206_1351501815_83bf4471429043c951561cea2daac773_rle_crop_3756234266_0.png.png imagette222575611744352101/1744351993_1174763_1351501899_c31cbed042760c277b0b2e3b4a7b6229_rle_crop_3756234250_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/f1767e40fee96e0a8fc7c43b12ade50b_67952259.png imagette222575611744352101 22257550 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=22257550 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351502570: '1744352005_1474206_1351501815_83bf4471429043c951561cea2daac773_rle_crop_3756234265_0.png', 1351502576: '1744352005_1474206_1351501800_619dd8969790b7487b467e6a1c8cbf86_rle_crop_3756234312_0.png', 1351502622: '1744351993_1174763_1351501593_3ebeeff86e281e63fbe7c86f79977dd7_rle_crop_3756234289_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/9e44492c889aa2a81c9d265db234c13b_49672567.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/4766601eb7d141c64523e1946d60f117_61413598.png change filename to text .imagette222575501744352101/ imagette222575501744352101/1744352005_1474206_1351501815_83bf4471429043c951561cea2daac773_rle_crop_3756234265_0.png.png imagette222575501744352101/1744352005_1474206_1351501800_619dd8969790b7487b467e6a1c8cbf86_rle_crop_3756234312_0.png.png imagette222575501744352101/1744351993_1174763_1351501593_3ebeeff86e281e63fbe7c86f79977dd7_rle_crop_3756234289_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/ab547e9e00e3b7b33e8095140d224baf_65129271.png imagette222575501744352101 22257551 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=22257551 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351500453: '1744351526_1465544_1351498414_41861c39fc35d56d2c1009058603df3a_rle_crop_3756225683_0.png', 1351500455: '1744351526_1465544_1351498414_41861c39fc35d56d2c1009058603df3a_rle_crop_3756225682_0.png', 1351500459: '1744351526_1465544_1351497998_d8b090aa51b1af40a33fa505dccdeb09_rle_crop_3756225857_0.png', 1351500461: '1744351526_1465544_1351497958_314bc62982824ac330184ee28665bbb3_rle_crop_3756225884_0.png', 1351502194: '1744351872_1172989_1351501212_0a1f3fbc197a33816de8fecf1370fbce_rle_crop_3756233071_0.png', 1351502664: '1744351993_1174763_1351501562_ea736b46826156b1dfff8554dca67ccc_rle_crop_3756234303_0.png', 1351502669: '1744352005_1474206_1351501849_5088c3e426798a62cd46af43e59137cd_rle_crop_3756234237_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/9f86a5ea739d7fb4ba17705f82b6b22f_1835208.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/75e9d349833301dfab250baf6db33434_34808676.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/172599cbf4f4ac4fd35b3b0f48290564_26407301.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/1555ba45a642f2fa4188bfad0a043c99_11685462.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/6cd980a5e6ec49be18dd970d25d62857_11937257.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/9a6dbbd046ac028d8b9da2c419d674f3_19462624.png change filename to text .imagette222575511744352101/ imagette222575511744352101/1744352005_1474206_1351501849_5088c3e426798a62cd46af43e59137cd_rle_crop_3756234237_0.png.png imagette222575511744352101/1744351526_1465544_1351497958_314bc62982824ac330184ee28665bbb3_rle_crop_3756225884_0.png.png imagette222575511744352101/1744351526_1465544_1351498414_41861c39fc35d56d2c1009058603df3a_rle_crop_3756225682_0.png.png imagette222575511744352101/1744351993_1174763_1351501562_ea736b46826156b1dfff8554dca67ccc_rle_crop_3756234303_0.png.png imagette222575511744352101/1744351526_1465544_1351497998_d8b090aa51b1af40a33fa505dccdeb09_rle_crop_3756225857_0.png.png imagette222575511744352101/1744351526_1465544_1351498414_41861c39fc35d56d2c1009058603df3a_rle_crop_3756225683_0.png.png imagette222575511744352101/1744351872_1172989_1351501212_0a1f3fbc197a33816de8fecf1370fbce_rle_crop_3756233071_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/da619610650e766b78baffcaa21ae5a2_17798405.png imagette222575511744352101 22257559 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=22257559 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351499241: '1744351407_1462070_1351498357_9c6274571a2198cdd44f49e58723aafc_rle_crop_3756224751_0.png', 1351499243: '1744351407_1462070_1351498357_9c6274571a2198cdd44f49e58723aafc_rle_crop_3756224744_0.png', 1351500393: '1744351526_1465544_1351498058_778cc9aae51941879517d7e43fb8ff2e_rle_crop_3756225695_0.png', 1351500396: '1744351526_1465544_1351497998_d8b090aa51b1af40a33fa505dccdeb09_rle_crop_3756225861_0.png', 1351500399: '1744351526_1465544_1351497958_314bc62982824ac330184ee28665bbb3_rle_crop_3756225886_0.png', 1351502172: '1744351872_1172989_1351501263_2f9a5bcaecb7afd1d4be8f57c6fe54cc_rle_crop_3756233028_0.png', 1351502173: '1744351872_1172989_1351501235_f266c8f7da2679a78cab43c2a2d31f74_rle_crop_3756233058_0.png', 1351502175: '1744351872_1172989_1351501172_e6e7ae55a67e676657d51ea91cb8ba44_rle_crop_3756233170_0.png', 1351502572: '1744351993_1174763_1351501562_ea736b46826156b1dfff8554dca67ccc_rle_crop_3756234302_0.png', 1351502573: '1744351993_1174763_1351501562_ea736b46826156b1dfff8554dca67ccc_rle_crop_3756234304_0.png', 1351502604: '1744351993_1174763_1351501497_ab4e06b7255d5c8941e167be70d3ec5d_rle_crop_3756234351_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/f00206901386dbac49b17c8d7d192e58_65615056.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/f5c1845edb78988e01b219a1f3fa3dfd_5574817.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/6b0c625370613b0dbbcb326052357c31_805454.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/17463221027ad377e276474573411b8c_96481058.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/da554a349800770e9b56b93307128fcc_1222394.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/cb7e04276fa9c1eb79b7c9b4bf282c37_17386394.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/3ff5f8d7d8fde654c46078aef4863b1d_9842239.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/9ae0749d594e25d65a1c254941296fb5_32955848.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/f063b434e87bf426e22b7a1c27fadf96_83440582.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/52c7b941335110af7e2a92f968f5a9f3_78386090.png change filename to text .imagette222575591744352102/ imagette222575591744352102/1744351993_1174763_1351501562_ea736b46826156b1dfff8554dca67ccc_rle_crop_3756234304_0.png.png imagette222575591744352102/1744351407_1462070_1351498357_9c6274571a2198cdd44f49e58723aafc_rle_crop_3756224751_0.png.png imagette222575591744352102/1744351872_1172989_1351501172_e6e7ae55a67e676657d51ea91cb8ba44_rle_crop_3756233170_0.png.png imagette222575591744352102/1744351526_1465544_1351498058_778cc9aae51941879517d7e43fb8ff2e_rle_crop_3756225695_0.png.png imagette222575591744352102/1744351407_1462070_1351498357_9c6274571a2198cdd44f49e58723aafc_rle_crop_3756224744_0.png.png imagette222575591744352102/1744351872_1172989_1351501263_2f9a5bcaecb7afd1d4be8f57c6fe54cc_rle_crop_3756233028_0.png.png imagette222575591744352102/1744351993_1174763_1351501562_ea736b46826156b1dfff8554dca67ccc_rle_crop_3756234302_0.png.png imagette222575591744352102/1744351526_1465544_1351497958_314bc62982824ac330184ee28665bbb3_rle_crop_3756225886_0.png.png imagette222575591744352102/1744351526_1465544_1351497998_d8b090aa51b1af40a33fa505dccdeb09_rle_crop_3756225861_0.png.png imagette222575591744352102/1744351872_1172989_1351501235_f266c8f7da2679a78cab43c2a2d31f74_rle_crop_3756233058_0.png.png imagette222575591744352102/1744351993_1174763_1351501497_ab4e06b7255d5c8941e167be70d3ec5d_rle_crop_3756234351_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/3549d85be399170760c2d4ca7787cf78_49161235.png imagette222575591744352102 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22257532 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22257563,22257564,22257565,22257566,22257567,22257568,22257569,22257570,22257571,22257572,22257573,22257574?tags=Carton_gris,Carton_brun,kraft,metal,papier,autre_refus,environnement,mal_croppe,flou,Teint_Dans_La_Masse,plastique,cartonnette your option no_mail is active, we will not send the real mail to your client args[1351502314] : ('0.02618922773236875',) no score found for photo 1351502314 We are sending mail with results at report@fotonower.com args[1351502309] : ('0.02618922773236875',) no score found for photo 1351502309 We are sending mail with results at report@fotonower.com args[1351502296] : ('0.02618922773236875',) no score found for photo 1351502296 We are sending mail with results at report@fotonower.com args[1351502265] : ('0.02618922773236875',) no score found for photo 1351502265 We are sending mail with results at report@fotonower.com args[1351502260] : ('0.02618922773236875',) no score found for photo 1351502260 We are sending mail with results at report@fotonower.com args[1351502131] : ('0.02618922773236875',) no score found for photo 1351502131 We are sending mail with results at report@fotonower.com args[1351502094] : ('0.02618922773236875',) no score found for photo 1351502094 We are sending mail with results at report@fotonower.com args[1351502039] : ('0.02618922773236875',) no score found for photo 1351502039 We are sending mail with results at report@fotonower.com args[1351502029] : ('0.02618922773236875',) no score found for photo 1351502029 We are sending mail with results at report@fotonower.com args[1351502015] : ('0.02618922773236875',) no score found for photo 1351502015 We are sending mail with results at report@fotonower.com refus_total : 0.02618922773236875 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=22257532 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_P22257532_11-04-2025_08_15_00.pdf results_Auto_P22257532_11-04-2025_08_15_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22257532_11-04-2025_08_15_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','22257532','results_Auto_P22257532_11-04-2025_08_15_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22257532_11-04-2025_08_15_00.pdf','pdf','','0.18','0.02618922773236875') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22257532]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1351502314, 1351502309, 1351502296, 1351502265, 1351502260, 1351502131, 1351502094, 1351502039, 1351502029, 1351502015] map_info['map_portfolio_photo'] : {22257532: [1351502314, 1351502309, 1351502296, 1351502265, 1351502260, 1351502131, 1351502094, 1351502039, 1351502029, 1351502015, 1351501899, 1351501849, 1351501815, 1351501800, 1351501773, 1351501635, 1351501593, 1351501562, 1351501541, 1351501497, 1351501478, 1351501274, 1351501263, 1351501235, 1351501212, 1351501188, 1351501172, 1351500980, 1351500960, 1351500927, 1351498414, 1351498385, 1351498357, 1351498058, 1351497998, 1351497958, 1351497918]} final : False mtd_id 4302 list_pids : [1351502314, 1351502309, 1351502296, 1351502265, 1351502260, 1351502131, 1351502094, 1351502039, 1351502029, 1351502015] 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, '2742650') ('4302', '22257532', '1351502314', None, None, None, None, None, '2742650') ('4302', None, None, None, None, None, None, None, '2742650') ('4302', '22257532', '1351502309', None, None, None, None, None, '2742650') ('4302', None, None, None, None, None, None, None, '2742650') ('4302', '22257532', '1351502296', None, None, None, None, None, '2742650') ('4302', None, None, None, None, None, None, None, '2742650') ('4302', '22257532', '1351502265', None, None, None, None, None, '2742650') ('4302', None, None, None, None, None, None, None, '2742650') ('4302', '22257532', '1351502260', None, None, None, None, None, '2742650') ('4302', None, None, None, None, None, None, None, '2742650') ('4302', '22257532', '1351502131', None, None, None, None, None, '2742650') ('4302', None, None, None, None, None, None, None, '2742650') ('4302', '22257532', '1351502094', None, None, None, None, None, '2742650') ('4302', None, None, None, None, None, None, None, '2742650') ('4302', '22257532', '1351502039', None, None, None, None, None, '2742650') ('4302', None, None, None, None, None, None, None, '2742650') ('4302', '22257532', '1351502029', None, None, None, None, None, '2742650') ('4302', None, None, None, None, None, None, None, '2742650') ('4302', '22257532', '1351502015', None, None, None, None, None, '2742650') 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', '22257532', '1351502314', None, None, None, None, None, '2742650'), ('4302', '22257532', '1351502309', None, None, None, None, None, '2742650'), ('4302', '22257532', '1351502296', None, None, None, None, None, '2742650'), ('4302', '22257532', '1351502265', None, None, None, None, None, '2742650'), ('4302', '22257532', '1351502260', None, None, None, None, None, '2742650'), ('4302', '22257532', '1351502131', None, None, None, None, None, '2742650'), ('4302', '22257532', '1351502094', None, None, None, None, None, '2742650'), ('4302', '22257532', '1351502039', None, None, None, None, None, '2742650'), ('4302', '22257532', '1351502029', None, None, None, None, None, '2742650'), ('4302', '22257532', '1351502015', None, None, None, None, None, '2742650')] time used for this insertion : 0.013687610626220703 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.618441104888916 time spend to save output : 0.013921499252319336 total time spend for step 4 : 3.6323626041412354 step5:split_time_score Fri Apr 11 08:15:03 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 : ['22257532'] 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 : [('22257532',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22257532) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1351502314: {'path': 'temp/1744352100_2509789_1351502314_81f37d3b46714d4a4a85481ac2d3657c.jpg', 'extension': 'jpg'}, 1351502265: {'path': 'temp/1744352100_2509789_1351502265_d40e1f21fc0b40a575373b7d155863b6.jpg', 'extension': 'jpg'}, 1351502296: {'path': 'temp/1744352100_2509789_1351502296_1ca3e76784d5d90de447de4dfc53945f.jpg', 'extension': 'jpg'}, 1351502309: {'path': 'temp/1744352100_2509789_1351502309_a0b271298a7698e9ebb28ac341f3876a.jpg', 'extension': 'jpg'}, 1351502094: {'path': 'temp/1744352100_2509789_1351502094_7b6f3dfe4fbfb299968746248c690257.jpg', 'extension': 'jpg'}, 1351502131: {'path': 'temp/1744352100_2509789_1351502131_973ac6b9e6b17a3cebb503bd29ce7bcf.jpg', 'extension': 'jpg'}, 1351502260: {'path': 'temp/1744352100_2509789_1351502260_bbffd2f2c163bf1a940703a58f5bcad7.jpg', 'extension': 'jpg'}, 1351502015: {'path': 'temp/1744352100_2509789_1351502015_165ea2ab7a8b2172e2a81b14b9ad6f5a.jpg', 'extension': 'jpg'}, 1351502029: {'path': 'temp/1744352100_2509789_1351502029_41dc97f606f13bdcf4d0944bbaba32c7.jpg', 'extension': 'jpg'}, 1351502039: {'path': 'temp/1744352100_2509789_1351502039_598b7d77f5e4c84f9256a3cdd848a20b.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 = 22257532; (('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 = 22257532 group by h (('08', 37),) 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=22257532 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 (22257532) 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 (22257532) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 11042025 22257532 Nombre de photos uploadées : 37 / 23040 (0%) 11042025 22257532 Nombre de photos taguées (types de déchets): 0 / 37 (0%) 11042025 22257532 Nombre de photos taguées (volume) : 0 / 37 (0%) [{'photo_id': 1351498058, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/778cc9aae51941879517d7e43fb8ff2e.jpg', 'username': None, 'uploaded_at': 1744351268, 'text': 'image_11042025_08_00_14_010197m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1351497998, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/d8b090aa51b1af40a33fa505dccdeb09.jpg', 'username': None, 'uploaded_at': 1744351268, 'text': 'image_11042025_08_00_24_010144m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1351497958, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/314bc62982824ac330184ee28665bbb3.jpg', 'username': None, 'uploaded_at': 1744351268, 'text': 'image_11042025_08_00_34_010144m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1351497918, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/97469edc976be2427305101a11ea6d60.jpg', 'username': None, 'uploaded_at': 1744351268, 'text': 'image_11042025_08_00_44_010136m0.jpg 4e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.5762786865234375e-06 elapsed_time : order_list_meta_photo_and_scores 8.58306884765625e-06 ????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0018184185028076172 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22257532, '2025-04-11' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1733453,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.022145509719848633 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= 1733453 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1733453, 'dashboard_run_id': 1742268, 'mtr_portfolio_id': 22255333, 'dashboard_result_id': 10013480, '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_P22255333_11-04-2025_07_33_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22255336, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22255337, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22255338, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22255339, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22255340, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22255341, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22255342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22255343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22255344, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22255345, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22255346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22255347, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1742268, 'mtr_portfolio_id': 22255996, 'dashboard_result_id': 10013481, '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_P22255996_11-04-2025_07_50_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22256053, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22256054, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22256055, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22256056, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22256057, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22256058, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22256059, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22256060, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22256061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22256062, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22256063, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22256064, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1742268, 'mtr_portfolio_id': 22256877, 'dashboard_result_id': 10013482, '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_P22256877_11-04-2025_08_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22256880, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22256881, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22256882, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22256883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22256884, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22256885, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22256886, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22256887, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22256888, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22256889, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22256890, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22256891, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1742268, 'mtr_portfolio_id': 22257532, 'dashboard_result_id': 10013483, '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_P22257532_11-04-2025_08_12_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22257550, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22257551, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22257552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22257553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22257554, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22257555, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22257556, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22257557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22257558, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22257559, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22257560, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22257561, '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 = 22255333 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': 2742462, 'mtr_portfolio_id': 22255333, 'created_at': datetime.datetime(2025, 4, 11, 7, 33), 'result': '0.060143392302330116', 'result_long': None, 'result_double': None}] Qualite : 0.060143392302330116 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22255333 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22255333_11-04-2025_07_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22255333 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_P22255333_11-04-2025_07_33_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22255336, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22255337, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22255338, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22255339, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22255340, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22255341, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22255342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22255343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22255344, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22255345, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22255346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22255347, 'pht': 3726}}" where mtr_portfolio_id = 22255333 and dashboard_run_id = 1742268 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`=22255333 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10013480, 0.060143392302330116, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22255333_11-04-2025_07_33_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22255336, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22255337, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22255338, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22255339, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22255340, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22255341, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22255342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22255343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22255344, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22255345, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22255346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22255347, '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 = 22255996 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': 2742518, 'mtr_portfolio_id': 22255996, 'created_at': datetime.datetime(2025, 4, 11, 7, 50, 59), 'result': '0.056899860998053525', 'result_long': None, 'result_double': None}] Qualite : 0.056899860998053525 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22255996 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22255996_11-04-2025_07_50_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22255996 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_P22255996_11-04-2025_07_50_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22256053, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22256054, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22256055, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22256056, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22256057, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22256058, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22256059, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22256060, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22256061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22256062, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22256063, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22256064, 'pht': 3726}}" where mtr_portfolio_id = 22255996 and dashboard_run_id = 1742268 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`=22255996 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10013481, 0.056899860998053525, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22255996_11-04-2025_07_50_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22256053, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22256054, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22256055, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22256056, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22256057, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22256058, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22256059, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22256060, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22256061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22256062, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22256063, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22256064, '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 = 22256877 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': 2742578, 'mtr_portfolio_id': 22256877, 'created_at': datetime.datetime(2025, 4, 11, 8, 2, 59), 'result': '0.056332539393677016', 'result_long': None, 'result_double': None}] Qualite : 0.056332539393677016 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22256877 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22256877_11-04-2025_08_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22256877 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_P22256877_11-04-2025_08_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22256880, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22256881, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22256882, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22256883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22256884, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22256885, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22256886, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22256887, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22256888, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22256889, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22256890, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22256891, 'pht': 3726}}" where mtr_portfolio_id = 22256877 and dashboard_run_id = 1742268 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`=22256877 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10013482, 0.056332539393677016, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22256877_11-04-2025_08_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22256880, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22256881, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22256882, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22256883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22256884, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22256885, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22256886, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22256887, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22256888, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22256889, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22256890, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22256891, '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 = 22257532 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': 2742650, 'mtr_portfolio_id': 22257532, 'created_at': datetime.datetime(2025, 4, 11, 8, 15), 'result': '0.02618922773236875', 'result_long': None, 'result_double': None}] Qualite : 0.02618922773236875 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22257532 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22257532_11-04-2025_08_15_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22257532 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_P22257532_11-04-2025_08_15_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22257550, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22257551, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22257552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22257553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22257554, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22257555, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22257556, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22257557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22257558, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22257559, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22257560, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22257561, 'pht': 3726}}" where mtr_portfolio_id = 22257532 and dashboard_run_id = 1742268 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`=22257532 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10013483, 0.02618922773236875, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22257532_11-04-2025_08_15_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22257550, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22257551, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22257552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22257553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22257554, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22257555, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22257556, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22257557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22257558, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22257559, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22257560, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22257561, '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 (22255333,22255996,22256877,22257532) result : ((1351488319,), (1351488373,), (1351488413,), (1351488716,), (1351488732,), (1351488993,), (1351489031,), (1351489439,), (1351489488,), (1351489791,), (1351490157,), (1351490176,), (1351490276,), (1351490294,), (1351490301,), (1351490308,), (1351490312,), (1351490367,), (1351490373,), (1351490407,), (1351490417,), (1351490603,), (1351490628,), (1351490650,), (1351490681,), (1351490690,), (1351490708,), (1351491049,), (1351491065,), (1351491073,), (1351491092,), (1351491111,), (1351491278,), (1351491331,), (1351491353,), (1351491375,), (1351491390,), (1351491526,), (1351491530,), (1351491575,), (1351491606,), (1351491640,), (1351491725,), (1351491740,), (1351492099,), (1351492119,), (1351492184,), (1351492430,), (1351492425,), (1351492562,), (1351492571,), (1351492575,), (1351492582,), (1351492586,), (1351492612,), (1351492615,), (1351492630,), (1351492634,), (1351492638,), (1351492751,), (1351492779,), (1351492782,), (1351492785,), (1351492921,), (1351492934,), (1351492957,), (1351493001,), (1351493032,), (1351493040,), (1351493200,), (1351493234,), (1351493307,), (1351493331,), (1351493431,), (1351493445,), (1351493451,), (1351493471,), (1351493474,), (1351493480,), (1351493536,), (1351493554,), (1351493560,), (1351493564,), (1351493722,), (1351493746,), (1351493755,), (1351493775,), (1351493793,), (1351493804,), (1351493857,), (1351493860,), (1351493863,), (1351493884,), (1351493920,), (1351493946,), (1351494136,), (1351494138,), (1351494210,), (1351494215,), (1351494255,), (1351494342,), (1351494347,), (1351494351,), (1351494354,), (1351494359,), (1351494374,), (1351494533,), (1351494546,), (1351494562,), (1351494605,), (1351494612,), (1351494838,), (1351494876,), (1351494956,), (1351495499,), (1351495453,), (1351495464,), (1351495476,), (1351495489,), (1351495494,), (1351495575,), (1351495582,), (1351495586,), (1351495610,), (1351495625,), (1351495642,), (1351495760,), (1351495778,), (1351495808,), (1351495830,), (1351496199,), (1351496207,), (1351496211,), (1351496220,), (1351496230,), (1351496272,), (1351496277,), (1351496278,), (1351496283,), (1351496288,), (1351496297,), (1351496382,), (1351496385,), (1351496435,), (1351496438,), (1351496441,), (1351496443,), (1351496446,), (1351496449,), (1351496481,), (1351496486,), (1351496490,), (1351496502,), (1351496508,), (1351496511,), (1351496583,), (1351496600,), (1351496617,), (1351496635,), (1351496679,), (1351496691,), (1351496745,), (1351496786,), (1351496809,), (1351496838,), (1351497412,), (1351497435,), (1351498220,), (1351497918,), (1351497958,), (1351497998,), (1351498058,), (1351498357,), (1351498385,), (1351498414,), (1351500927,), (1351500960,), (1351500980,), (1351501172,), (1351501188,), (1351501212,), (1351501235,), (1351501263,), (1351501274,), (1351501478,), (1351501497,), (1351501541,), (1351501562,), (1351501593,), (1351501635,), (1351501773,), (1351501800,), (1351501815,), (1351501849,), (1351501899,), (1351502015,), (1351502029,), (1351502039,), (1351502094,), (1351502131,), (1351502260,), (1351502265,), (1351502296,), (1351502309,), (1351502314,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'11042025': {'nb_upload': 37, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22257532]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1351502314, 1351502309, 1351502296, 1351502265, 1351502260, 1351502131, 1351502094, 1351502039, 1351502029, 1351502015] map_info['map_portfolio_photo'] : {22257532: [1351502314, 1351502309, 1351502296, 1351502265, 1351502260, 1351502131, 1351502094, 1351502039, 1351502029, 1351502015, 1351501899, 1351501849, 1351501815, 1351501800, 1351501773, 1351501635, 1351501593, 1351501562, 1351501541, 1351501497, 1351501478, 1351501274, 1351501263, 1351501235, 1351501212, 1351501188, 1351501172, 1351500980, 1351500960, 1351500927, 1351498414, 1351498385, 1351498357, 1351498058, 1351497998, 1351497958, 1351497918]} final : True mtd_id 4302 list_pids : [1351502314, 1351502309, 1351502296, 1351502265, 1351502260, 1351502131, 1351502094, 1351502039, 1351502029, 1351502015] Looping around the photos to save general results len do output : 1 /22257532Didn'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, '2742650') ('4302', '22257532', '1351502314', None, None, None, None, None, '2742650') ('4302', None, None, None, None, None, None, None, '2742650') ('4302', '22257532', '1351502309', None, None, None, None, None, '2742650') ('4302', None, None, None, None, None, None, None, '2742650') ('4302', '22257532', '1351502296', None, None, None, None, None, '2742650') ('4302', None, None, None, None, None, None, None, '2742650') ('4302', '22257532', '1351502265', None, None, None, None, None, '2742650') ('4302', None, None, None, None, None, None, None, '2742650') ('4302', '22257532', '1351502260', None, None, None, None, None, '2742650') ('4302', None, None, None, None, None, None, None, '2742650') ('4302', '22257532', '1351502131', None, None, None, None, None, '2742650') ('4302', None, None, None, None, None, None, None, '2742650') ('4302', '22257532', '1351502094', None, None, None, None, None, '2742650') ('4302', None, None, None, None, None, None, None, '2742650') ('4302', '22257532', '1351502039', None, None, None, None, None, '2742650') ('4302', None, None, None, None, None, None, None, '2742650') ('4302', '22257532', '1351502029', None, None, None, None, None, '2742650') ('4302', None, None, None, None, None, None, None, '2742650') ('4302', '22257532', '1351502015', None, None, None, None, None, '2742650') 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, '22257532', 'None', None, None, None, None, '2742650'), ('4302', '22257532', '1351502314', None, None, None, None, None, '2742650'), ('4302', '22257532', '1351502309', None, None, None, None, None, '2742650'), ('4302', '22257532', '1351502296', None, None, None, None, None, '2742650'), ('4302', '22257532', '1351502265', None, None, None, None, None, '2742650'), ('4302', '22257532', '1351502260', None, None, None, None, None, '2742650'), ('4302', '22257532', '1351502131', None, None, None, None, None, '2742650'), ('4302', '22257532', '1351502094', None, None, None, None, None, '2742650'), ('4302', '22257532', '1351502039', None, None, None, None, None, '2742650'), ('4302', '22257532', '1351502029', None, None, None, None, None, '2742650'), ('4302', '22257532', '1351502015', None, None, None, None, None, '2742650')] time used for this insertion : 0.014050483703613281 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3317575454711914 time spend to save output : 0.014246940612792969 total time spend for step 5 : 0.3460044860839844 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 (2742650) 2.15user 2.34system 0:08.88elapsed 50%CPU (0avgtext+0avgdata 158508maxresident)k 328inputs+9384outputs (17major+64132minor)pagefaults 0swaps