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 : 1146351 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 (2655885) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2655885) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21244713 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2655885'] with mtr_portfolio_ids : ['21244713'] and first list_photo_ids : [] new path : /proc/1146351/ Name: python3 Umask: 0002 State: R (running) Tgid: 1146351 Ngid: 0 Pid: 1146351 PPid: 1146350 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1146351 NSpid: 1146351 NSpgid: 1141288 NSsid: 1141288 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97264 kB VmRSS: 97264 kB RssAnon: 59764 kB RssFile: 37500 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 612 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 52 nonvoluntary_ctxt_switches: 95 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1146351', 'Ngid': '0', 'Pid': '1146351', 'PPid': '1146350', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1146351', 'NSpid': '1146351', 'NSpgid': '1141288', 'NSsid': '1141288', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97264 kB', 'VmRSS': '97264 kB', 'RssAnon': '59764 kB', 'RssFile': '37500 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '612 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '52', 'nonvoluntary_ctxt_switches': '95'} ('datou_batch_current', '1146351', '1106844', '0', '1106844', '865592', '97264', b'', 'marlene', '2655885') 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 (21244713) 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 (2655885 ) ) 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 (21244713) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1342687110, 'portfolio_id': 21244713}, {'photo_id': 1342686534, 'portfolio_id': 21244713}, {'photo_id': 1342686439, 'portfolio_id': 21244713}, {'photo_id': 1342686207, 'portfolio_id': 21244713}, {'photo_id': 1342686186, 'portfolio_id': 21244713}, {'photo_id': 1342686133, 'portfolio_id': 21244713}, {'photo_id': 1342686079, 'portfolio_id': 21244713}, {'photo_id': 1342685993, 'portfolio_id': 21244713}, {'photo_id': 1342685614, 'portfolio_id': 21244713}, {'photo_id': 1342684834, 'portfolio_id': 21244713}, {'photo_id': 1342684830, 'portfolio_id': 21244713}, {'photo_id': 1342684756, 'portfolio_id': 21244713}, {'photo_id': 1342684749, 'portfolio_id': 21244713}, {'photo_id': 1342684555, 'portfolio_id': 21244713}, {'photo_id': 1342684483, 'portfolio_id': 21244713}, {'photo_id': 1342684100, 'portfolio_id': 21244713}, {'photo_id': 1342684075, 'portfolio_id': 21244713}, {'photo_id': 1342684070, 'portfolio_id': 21244713}, {'photo_id': 1342684023, 'portfolio_id': 21244713}, {'photo_id': 1342683767, 'portfolio_id': 21244713}, {'photo_id': 1342683764, 'portfolio_id': 21244713}, {'photo_id': 1342683758, 'portfolio_id': 21244713}, {'photo_id': 1342683666, 'portfolio_id': 21244713}, {'photo_id': 1342683610, 'portfolio_id': 21244713}, {'photo_id': 1342683606, 'portfolio_id': 21244713}, {'photo_id': 1342683462, 'portfolio_id': 21244713}, {'photo_id': 1342683459, 'portfolio_id': 21244713}, {'photo_id': 1342683384, 'portfolio_id': 21244713}, {'photo_id': 1342682919, 'portfolio_id': 21244713}, {'photo_id': 1342682912, 'portfolio_id': 21244713}, {'photo_id': 1342682903, 'portfolio_id': 21244713}] map_portfolio_id_photo_id: {21244713: [1342687110, 1342686534, 1342686439, 1342686207, 1342686186, 1342686133, 1342686079, 1342685993, 1342685614, 1342684834, 1342684830, 1342684756, 1342684749, 1342684555, 1342684483, 1342684100, 1342684075, 1342684070, 1342684023, 1342683767, 1342683764, 1342683758, 1342683666, 1342683610, 1342683606, 1342683462, 1342683459, 1342683384, 1342682919, 1342682912, 1342682903]} ##### 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.01591205596923828 #### 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 Mon Mar 10 22:33:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21244713) 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 : 21244713 get user id for portfolio 21244713 get sub ptf for main ptf 21244713, type 3726 and hashtags ['plastique', 'papier', 'mal_croppe', 'autre_refus', 'environnement', 'Carton_gris', 'flou', 'cartonnette', 'kraft', 'Teint_Dans_La_Masse', 'metal', 'Carton_brun'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21244713 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','papier','mal_croppe','autre_refus','environnement','Carton_gris','flou','cartonnette','kraft','Teint_Dans_La_Masse','metal','Carton_brun')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21244713 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','papier','mal_croppe','autre_refus','environnement','Carton_gris','flou','cartonnette','kraft','Teint_Dans_La_Masse','metal','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 21244713, 'sub_port_id': 21244826, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13833799, 'last_updated_at': datetime.datetime(2025, 3, 10, 22, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 22, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 22, 23)}, 'mal_croppe': {'main_port_id': 21244713, 'sub_port_id': 21244828, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13833800, 'last_updated_at': datetime.datetime(2025, 3, 10, 22, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 22, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 22, 23)}, 'papier': {'main_port_id': 21244713, 'sub_port_id': 21244830, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13833801, 'last_updated_at': datetime.datetime(2025, 3, 10, 22, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 22, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 22, 23)}, 'flou': {'main_port_id': 21244713, 'sub_port_id': 21244832, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13833802, 'last_updated_at': datetime.datetime(2025, 3, 10, 22, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 22, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 22, 23)}, 'metal': {'main_port_id': 21244713, 'sub_port_id': 21244834, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13833803, 'last_updated_at': datetime.datetime(2025, 3, 10, 22, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 22, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 22, 23)}, 'Carton_brun': {'main_port_id': 21244713, 'sub_port_id': 21244836, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13833804, 'last_updated_at': datetime.datetime(2025, 3, 10, 22, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 22, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 22, 23)}, 'Carton_gris': {'main_port_id': 21244713, 'sub_port_id': 21244838, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13833805, 'last_updated_at': datetime.datetime(2025, 3, 10, 22, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 22, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 22, 23)}, 'kraft': {'main_port_id': 21244713, 'sub_port_id': 21244840, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13833806, 'last_updated_at': datetime.datetime(2025, 3, 10, 22, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 22, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 22, 23)}, 'cartonnette': {'main_port_id': 21244713, 'sub_port_id': 21244842, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13833807, 'last_updated_at': datetime.datetime(2025, 3, 10, 22, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 22, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 22, 23)}, 'plastique': {'main_port_id': 21244713, 'sub_port_id': 21244844, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13833808, 'last_updated_at': datetime.datetime(2025, 3, 10, 22, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 22, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 22, 23)}, 'environnement': {'main_port_id': 21244713, 'sub_port_id': 21244846, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13833809, 'last_updated_at': datetime.datetime(2025, 3, 10, 22, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 22, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 22, 23)}, 'autre_refus': {'main_port_id': 21244713, 'sub_port_id': 21244849, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13833810, 'last_updated_at': datetime.datetime(2025, 3, 10, 22, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 22, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 22, 23)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21244826 , 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=21244713 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 (21244826) result : ((1342684188,), (1342684308,), (1342684311,), (1342684315,), (1342684591,), (1342684593,), (1342684905,), (1342684908,), (1342685838,), (1342686980,), (1342686982,), (1342687673,), (1342687674,), (1342687676,), (1342687679,), (1342687681,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21244713) result : ((1342682903,), (1342682912,), (1342682919,), (1342683384,), (1342683459,), (1342683462,), (1342683606,), (1342683610,), (1342683666,), (1342683758,), (1342683764,), (1342683767,), (1342684023,), (1342684070,), (1342684075,), (1342684100,), (1342684483,), (1342684555,), (1342684749,), (1342684756,), (1342684830,), (1342684834,), (1342685614,), (1342685993,), (1342686079,), (1342686133,), (1342686186,), (1342686207,), (1342686439,), (1342686534,), (1342687110,)) 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 (1342684100) 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 21244828 , 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=21244713 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 (21244828) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21244713) result : ((1342682903,), (1342682912,), (1342682919,), (1342683384,), (1342683459,), (1342683462,), (1342683606,), (1342683610,), (1342683666,), (1342683758,), (1342683764,), (1342683767,), (1342684023,), (1342684070,), (1342684075,), (1342684100,), (1342684483,), (1342684555,), (1342684749,), (1342684756,), (1342684830,), (1342684834,), (1342685614,), (1342685993,), (1342686079,), (1342686133,), (1342686186,), (1342686207,), (1342686439,), (1342686534,), (1342687110,)) 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 (1342684100) 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 21244830 , 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=21244713 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 (21244830) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21244713) result : ((1342682903,), (1342682912,), (1342682919,), (1342683384,), (1342683459,), (1342683462,), (1342683606,), (1342683610,), (1342683666,), (1342683758,), (1342683764,), (1342683767,), (1342684023,), (1342684070,), (1342684075,), (1342684100,), (1342684483,), (1342684555,), (1342684749,), (1342684756,), (1342684830,), (1342684834,), (1342685614,), (1342685993,), (1342686079,), (1342686133,), (1342686186,), (1342686207,), (1342686439,), (1342686534,), (1342687110,)) 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 (1342684100) 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 21244832 , 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=21244713 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 (21244832) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21244713) result : ((1342682903,), (1342682912,), (1342682919,), (1342683384,), (1342683459,), (1342683462,), (1342683606,), (1342683610,), (1342683666,), (1342683758,), (1342683764,), (1342683767,), (1342684023,), (1342684070,), (1342684075,), (1342684100,), (1342684483,), (1342684555,), (1342684749,), (1342684756,), (1342684830,), (1342684834,), (1342685614,), (1342685993,), (1342686079,), (1342686133,), (1342686186,), (1342686207,), (1342686439,), (1342686534,), (1342687110,)) 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 (1342684100) 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 21244834 , 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=21244713 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 (21244834) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21244713) result : ((1342682903,), (1342682912,), (1342682919,), (1342683384,), (1342683459,), (1342683462,), (1342683606,), (1342683610,), (1342683666,), (1342683758,), (1342683764,), (1342683767,), (1342684023,), (1342684070,), (1342684075,), (1342684100,), (1342684483,), (1342684555,), (1342684749,), (1342684756,), (1342684830,), (1342684834,), (1342685614,), (1342685993,), (1342686079,), (1342686133,), (1342686186,), (1342686207,), (1342686439,), (1342686534,), (1342687110,)) 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 (1342684100) 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 21244836 , 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=21244713 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 (21244836) result : ((1342684201,), (1342684202,), (1342684203,), (1342684389,), (1342684393,), (1342684397,), (1342684946,), (1342684948,), (1342684950,), (1342685265,), (1342685266,), (1342685859,), (1342685861,), (1342685862,), (1342687072,), (1342687073,), (1342687074,), (1342687075,), (1342687076,), (1342687700,), (1342687701,), (1342687703,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21244713) result : ((1342682903,), (1342682912,), (1342682919,), (1342683384,), (1342683459,), (1342683462,), (1342683606,), (1342683610,), (1342683666,), (1342683758,), (1342683764,), (1342683767,), (1342684023,), (1342684070,), (1342684075,), (1342684100,), (1342684483,), (1342684555,), (1342684749,), (1342684756,), (1342684830,), (1342684834,), (1342685614,), (1342685993,), (1342686079,), (1342686133,), (1342686186,), (1342686207,), (1342686439,), (1342686534,), (1342687110,)) 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 (1342684100) 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 21244838 , 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=21244713 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 (21244838) result : ((1342684197,), (1342684198,), (1342684927,), (1342684929,), (1342685234,), (1342685235,), (1342685238,), (1342685239,), (1342685240,), (1342685241,), (1342685242,), (1342685257,), (1342685258,), (1342687002,), (1342687003,), (1342687004,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21244713) result : ((1342682903,), (1342682912,), (1342682919,), (1342683384,), (1342683459,), (1342683462,), (1342683606,), (1342683610,), (1342683666,), (1342683758,), (1342683764,), (1342683767,), (1342684023,), (1342684070,), (1342684075,), (1342684100,), (1342684483,), (1342684555,), (1342684749,), (1342684756,), (1342684830,), (1342684834,), (1342685614,), (1342685993,), (1342686079,), (1342686133,), (1342686186,), (1342686207,), (1342686439,), (1342686534,), (1342687110,)) 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 (1342684100) 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 21244840 , 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=21244713 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 (21244840) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21244713) result : ((1342682903,), (1342682912,), (1342682919,), (1342683384,), (1342683459,), (1342683462,), (1342683606,), (1342683610,), (1342683666,), (1342683758,), (1342683764,), (1342683767,), (1342684023,), (1342684070,), (1342684075,), (1342684100,), (1342684483,), (1342684555,), (1342684749,), (1342684756,), (1342684830,), (1342684834,), (1342685614,), (1342685993,), (1342686079,), (1342686133,), (1342686186,), (1342686207,), (1342686439,), (1342686534,), (1342687110,)) 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 (1342684100) 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 21244842 , 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=21244713 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 (21244842) result : ((1342684363,), (1342684937,), (1342684939,), (1342685254,), (1342685267,), (1342687008,), (1342687009,), (1342687692,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21244713) result : ((1342682903,), (1342682912,), (1342682919,), (1342683384,), (1342683459,), (1342683462,), (1342683606,), (1342683610,), (1342683666,), (1342683758,), (1342683764,), (1342683767,), (1342684023,), (1342684070,), (1342684075,), (1342684100,), (1342684483,), (1342684555,), (1342684749,), (1342684756,), (1342684830,), (1342684834,), (1342685614,), (1342685993,), (1342686079,), (1342686133,), (1342686186,), (1342686207,), (1342686439,), (1342686534,), (1342687110,)) 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 (1342684100) 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 21244844 , 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=21244713 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 (21244844) result : ((1342684418,), (1342685289,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21244713) result : ((1342682903,), (1342682912,), (1342682919,), (1342683384,), (1342683459,), (1342683462,), (1342683606,), (1342683610,), (1342683666,), (1342683758,), (1342683764,), (1342683767,), (1342684023,), (1342684070,), (1342684075,), (1342684100,), (1342684483,), (1342684555,), (1342684749,), (1342684756,), (1342684830,), (1342684834,), (1342685614,), (1342685993,), (1342686079,), (1342686133,), (1342686186,), (1342686207,), (1342686439,), (1342686534,), (1342687110,)) 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 (1342684100) 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 21244846 , 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=21244713 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 (21244846) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21244713) result : ((1342682903,), (1342682912,), (1342682919,), (1342683384,), (1342683459,), (1342683462,), (1342683606,), (1342683610,), (1342683666,), (1342683758,), (1342683764,), (1342683767,), (1342684023,), (1342684070,), (1342684075,), (1342684100,), (1342684483,), (1342684555,), (1342684749,), (1342684756,), (1342684830,), (1342684834,), (1342685614,), (1342685993,), (1342686079,), (1342686133,), (1342686186,), (1342686207,), (1342686439,), (1342686534,), (1342687110,)) 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 (1342684100) 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 21244849 , 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=21244713 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 (21244849) result : ((1342684192,), (1342684193,), (1342684194,), (1342684334,), (1342684336,), (1342684344,), (1342684614,), (1342684616,), (1342684916,), (1342684918,), (1342685183,), (1342685185,), (1342685187,), (1342685188,), (1342685681,), (1342685683,), (1342685848,), (1342685849,), (1342686992,), (1342687687,), (1342687688,), (1342687691,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21244713) result : ((1342682903,), (1342682912,), (1342682919,), (1342683384,), (1342683459,), (1342683462,), (1342683606,), (1342683610,), (1342683666,), (1342683758,), (1342683764,), (1342683767,), (1342684023,), (1342684070,), (1342684075,), (1342684100,), (1342684483,), (1342684555,), (1342684749,), (1342684756,), (1342684830,), (1342684834,), (1342685614,), (1342685993,), (1342686079,), (1342686133,), (1342686186,), (1342686207,), (1342686439,), (1342686534,), (1342687110,)) 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 (1342684100) 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`=21244713 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','papier','mal_croppe','autre_refus','environnement','Carton_gris','flou','cartonnette','kraft','Teint_Dans_La_Masse','metal','Carton_brun')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21244713 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','papier','mal_croppe','autre_refus','environnement','Carton_gris','flou','cartonnette','kraft','Teint_Dans_La_Masse','metal','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 21244713, 'sub_port_id': 21244850, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13833811, 'last_updated_at': datetime.datetime(2025, 3, 10, 22, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 22, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 22, 23, 2)}, 'mal_croppe': {'main_port_id': 21244713, 'sub_port_id': 21244851, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13833812, 'last_updated_at': datetime.datetime(2025, 3, 10, 22, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 22, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 22, 23, 2)}, 'papier': {'main_port_id': 21244713, 'sub_port_id': 21244852, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13833813, 'last_updated_at': datetime.datetime(2025, 3, 10, 22, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 22, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 22, 23, 2)}, 'flou': {'main_port_id': 21244713, 'sub_port_id': 21244853, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13833814, 'last_updated_at': datetime.datetime(2025, 3, 10, 22, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 22, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 22, 23, 2)}, 'metal': {'main_port_id': 21244713, 'sub_port_id': 21244854, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13833815, 'last_updated_at': datetime.datetime(2025, 3, 10, 22, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 22, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 22, 23, 2)}, 'Carton_brun': {'main_port_id': 21244713, 'sub_port_id': 21244855, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13833816, 'last_updated_at': datetime.datetime(2025, 3, 10, 22, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 22, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 22, 23, 2)}, 'Carton_gris': {'main_port_id': 21244713, 'sub_port_id': 21244856, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13833817, 'last_updated_at': datetime.datetime(2025, 3, 10, 22, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 22, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 22, 23, 2)}, 'kraft': {'main_port_id': 21244713, 'sub_port_id': 21244857, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13833818, 'last_updated_at': datetime.datetime(2025, 3, 10, 22, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 22, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 22, 23, 2)}, 'cartonnette': {'main_port_id': 21244713, 'sub_port_id': 21244858, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13833819, 'last_updated_at': datetime.datetime(2025, 3, 10, 22, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 22, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 22, 23, 2)}, 'plastique': {'main_port_id': 21244713, 'sub_port_id': 21244859, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13833820, 'last_updated_at': datetime.datetime(2025, 3, 10, 22, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 22, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 22, 23, 2)}, 'environnement': {'main_port_id': 21244713, 'sub_port_id': 21244860, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13833821, 'last_updated_at': datetime.datetime(2025, 3, 10, 22, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 22, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 22, 23, 2)}, 'autre_refus': {'main_port_id': 21244713, 'sub_port_id': 21244861, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13833822, 'last_updated_at': datetime.datetime(2025, 3, 10, 22, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 10, 22, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 10, 22, 23, 2)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21244850,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21244826 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21244851,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21244828 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21244852,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21244830 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21244853,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21244832 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21244854,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21244834 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21244855,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21244836 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21244856,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21244838 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21244857,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21244840 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21244858,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21244842 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21244859,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21244844 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21244860,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21244846 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21244861,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21244849 lien utilise dans velours : https://www.fotonower.com/velours/21244850,21244851,21244852,21244853,21244854,21244855,21244856,21244857,21244858,21244859,21244860,21244861?tags=Teint_Dans_La_Masse,mal_croppe,papier,flou,metal,Carton_brun,Carton_gris,kraft,cartonnette,plastique,environnement,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21244713]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1342687110, 1342686534, 1342686439, 1342686207, 1342686186, 1342686133, 1342686079] map_info['map_portfolio_photo'] : {21244713: [1342687110, 1342686534, 1342686439, 1342686207, 1342686186, 1342686133, 1342686079, 1342685993, 1342685614, 1342684834, 1342684830, 1342684756, 1342684749, 1342684555, 1342684483, 1342684100, 1342684075, 1342684070, 1342684023, 1342683767, 1342683764, 1342683758, 1342683666, 1342683610, 1342683606, 1342683462, 1342683459, 1342683384, 1342682919, 1342682912, 1342682903]} final : False mtd_id 4302 list_pids : [1342687110, 1342686534, 1342686439, 1342686207, 1342686186, 1342686133, 1342686079] Looping around the photos to save general results len do output : 1 /21244713. 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, '2655885') ('4302', '21244713', '1342687110', None, None, None, None, None, '2655885') ('4302', None, None, None, None, None, None, None, '2655885') ('4302', '21244713', '1342686534', None, None, None, None, None, '2655885') ('4302', None, None, None, None, None, None, None, '2655885') ('4302', '21244713', '1342686439', None, None, None, None, None, '2655885') ('4302', None, None, None, None, None, None, None, '2655885') ('4302', '21244713', '1342686207', None, None, None, None, None, '2655885') ('4302', None, None, None, None, None, None, None, '2655885') ('4302', '21244713', '1342686186', None, None, None, None, None, '2655885') ('4302', None, None, None, None, None, None, None, '2655885') ('4302', '21244713', '1342686133', None, None, None, None, None, '2655885') ('4302', None, None, None, None, None, None, None, '2655885') ('4302', '21244713', '1342686079', None, None, None, None, None, '2655885') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 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, '21244713', "{'Teint_Dans_La_Masse': 21244826, 'mal_croppe': 21244828, 'papier': 21244830, 'flou': 21244832, 'metal': 21244834, 'Carton_brun': 21244836, 'Carton_gris': 21244838, 'kraft': 21244840, 'cartonnette': 21244842, 'plastique': 21244844, 'environnement': 21244846, 'autre_refus': 21244849}", None, None, None, None, '2655885'), ('4302', '21244713', '1342687110', None, None, None, None, None, '2655885'), ('4302', '21244713', '1342686534', None, None, None, None, None, '2655885'), ('4302', '21244713', '1342686439', None, None, None, None, None, '2655885'), ('4302', '21244713', '1342686207', None, None, None, None, None, '2655885'), ('4302', '21244713', '1342686186', None, None, None, None, None, '2655885'), ('4302', '21244713', '1342686133', None, None, None, None, None, '2655885'), ('4302', '21244713', '1342686079', None, None, None, None, None, '2655885')] time used for this insertion : 0.021582603454589844 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5454578399658203 time spend to save output : 0.02189350128173828 total time spend for step 1 : 0.5673513412475586 step2:final Mon Mar 10 22:33:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21244713) 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 21244713 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1342682919,1342682912,1342682903,1342683462,1342683459,1342683384,1342683666,1342683610,1342683606,1342683767,1342683764,1342683758,1342684100,1342684075,1342684070,1342684023,1342684555,1342684483,1342684756,1342684749,1342684834,1342684830,1342685993,1342685614,1342686207,1342686186,1342686133,1342686079,1342686534,1342686439,1342687110); 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([21244713]) Inside saveOutput : final : False verbose : True original output for save of step final : {1342687110: ('0.129538440883957',), 1342686534: ('0.129538440883957',), 1342686439: ('0.129538440883957',), 1342686207: ('0.129538440883957',), 1342686186: ('0.129538440883957',), 1342686133: ('0.129538440883957',), 1342686079: ('0.129538440883957',)} new output for save of step final : {1342687110: ('0.129538440883957',), 1342686534: ('0.129538440883957',), 1342686439: ('0.129538440883957',), 1342686207: ('0.129538440883957',), 1342686186: ('0.129538440883957',), 1342686133: ('0.129538440883957',), 1342686079: ('0.129538440883957',)} [1342687110, 1342686534, 1342686439, 1342686207, 1342686186, 1342686133, 1342686079] map_info['map_portfolio_photo'] : {21244713: [1342687110, 1342686534, 1342686439, 1342686207, 1342686186, 1342686133, 1342686079, 1342685993, 1342685614, 1342684834, 1342684830, 1342684756, 1342684749, 1342684555, 1342684483, 1342684100, 1342684075, 1342684070, 1342684023, 1342683767, 1342683764, 1342683758, 1342683666, 1342683610, 1342683606, 1342683462, 1342683459, 1342683384, 1342682919, 1342682912, 1342682903]} final : False mtd_id 4302 list_pids : [1342687110, 1342686534, 1342686439, 1342686207, 1342686186, 1342686133, 1342686079] Looping around the photos to save general results len do output : 7 /1342687110.Didn't retrieve data . /1342686534.Didn't retrieve data . /1342686439.Didn't retrieve data . /1342686207.Didn't retrieve data . /1342686186.Didn't retrieve data . /1342686133.Didn't retrieve data . /1342686079.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, '2655885') ('4302', '21244713', '1342687110', None, None, None, None, None, '2655885') ('4302', None, None, None, None, None, None, None, '2655885') ('4302', '21244713', '1342686534', None, None, None, None, None, '2655885') ('4302', None, None, None, None, None, None, None, '2655885') ('4302', '21244713', '1342686439', None, None, None, None, None, '2655885') ('4302', None, None, None, None, None, None, None, '2655885') ('4302', '21244713', '1342686207', None, None, None, None, None, '2655885') ('4302', None, None, None, None, None, None, None, '2655885') ('4302', '21244713', '1342686186', None, None, None, None, None, '2655885') ('4302', None, None, None, None, None, None, None, '2655885') ('4302', '21244713', '1342686133', None, None, None, None, None, '2655885') ('4302', None, None, None, None, None, None, None, '2655885') ('4302', '21244713', '1342686079', None, None, None, None, None, '2655885') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21244713', '1342687110', '0.129538440883957', None, None, None, None, '2655885'), ('4302', '21244713', '1342686534', '0.129538440883957', None, None, None, None, '2655885'), ('4302', '21244713', '1342686439', '0.129538440883957', None, None, None, None, '2655885'), ('4302', '21244713', '1342686207', '0.129538440883957', None, None, None, None, '2655885'), ('4302', '21244713', '1342686186', '0.129538440883957', None, None, None, None, '2655885'), ('4302', '21244713', '1342686133', '0.129538440883957', None, None, None, None, '2655885'), ('4302', '21244713', '1342686079', '0.129538440883957', None, None, None, None, '2655885')] time used for this insertion : 0.015675067901611328 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07194113731384277 time spend to save output : 0.016012907028198242 total time spend for step 2 : 0.08795404434204102 step3:velours_tree Mon Mar 10 22:33:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21244713: [{'Teint_Dans_La_Masse': 21244826, 'mal_croppe': 21244828, 'papier': 21244830, 'flou': 21244832, 'metal': 21244834, 'Carton_brun': 21244836, 'Carton_gris': 21244838, 'kraft': 21244840, 'cartonnette': 21244842, 'plastique': 21244844, 'environnement': 21244846, 'autre_refus': 21244849}]} input_args_next_step : {21244713: ()} output_args : {21244713: [{'Teint_Dans_La_Masse': 21244826, 'mal_croppe': 21244828, 'papier': 21244830, 'flou': 21244832, 'metal': 21244834, 'Carton_brun': 21244836, 'Carton_gris': 21244838, 'kraft': 21244840, 'cartonnette': 21244842, 'plastique': 21244844, 'environnement': 21244846, 'autre_refus': 21244849}]} args : 21244713 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Teint_Dans_La_Masse': 21244826, 'mal_croppe': 21244828, 'papier': 21244830, 'flou': 21244832, 'metal': 21244834, 'Carton_brun': 21244836, 'Carton_gris': 21244838, 'kraft': 21244840, 'cartonnette': 21244842, 'plastique': 21244844, 'environnement': 21244846, 'autre_refus': 21244849},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21244713) 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([21244713]) 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.45423316955566406 time spend to save output : 7.700920104980469e-05 total time spend for step 3 : 0.45431017875671387 step4:send_mail_cod Mon Mar 10 22:33:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1342687110: ('0.129538440883957',), 1342686534: ('0.129538440883957',), 1342686439: ('0.129538440883957',), 1342686207: ('0.129538440883957',), 1342686186: ('0.129538440883957',), 1342686133: ('0.129538440883957',), 1342686079: ('0.129538440883957',)} input_args_next_step : {1342687110: ()} output_args : {1342687110: ('0.129538440883957',), 1342686534: ('0.129538440883957',), 1342686439: ('0.129538440883957',), 1342686207: ('0.129538440883957',), 1342686186: ('0.129538440883957',), 1342686133: ('0.129538440883957',), 1342686079: ('0.129538440883957',)} args : 1342687110 depend.output_id : 0 input_args_next_step : {1342687110: ('0.129538440883957',), 1342686534: ()} output_args : {1342687110: ('0.129538440883957',), 1342686534: ('0.129538440883957',), 1342686439: ('0.129538440883957',), 1342686207: ('0.129538440883957',), 1342686186: ('0.129538440883957',), 1342686133: ('0.129538440883957',), 1342686079: ('0.129538440883957',)} args : 1342686534 depend.output_id : 0 input_args_next_step : {1342687110: ('0.129538440883957',), 1342686534: ('0.129538440883957',), 1342686439: ()} output_args : {1342687110: ('0.129538440883957',), 1342686534: ('0.129538440883957',), 1342686439: ('0.129538440883957',), 1342686207: ('0.129538440883957',), 1342686186: ('0.129538440883957',), 1342686133: ('0.129538440883957',), 1342686079: ('0.129538440883957',)} args : 1342686439 depend.output_id : 0 input_args_next_step : {1342687110: ('0.129538440883957',), 1342686534: ('0.129538440883957',), 1342686439: ('0.129538440883957',), 1342686207: ()} output_args : {1342687110: ('0.129538440883957',), 1342686534: ('0.129538440883957',), 1342686439: ('0.129538440883957',), 1342686207: ('0.129538440883957',), 1342686186: ('0.129538440883957',), 1342686133: ('0.129538440883957',), 1342686079: ('0.129538440883957',)} args : 1342686207 depend.output_id : 0 input_args_next_step : {1342687110: ('0.129538440883957',), 1342686534: ('0.129538440883957',), 1342686439: ('0.129538440883957',), 1342686207: ('0.129538440883957',), 1342686186: ()} output_args : {1342687110: ('0.129538440883957',), 1342686534: ('0.129538440883957',), 1342686439: ('0.129538440883957',), 1342686207: ('0.129538440883957',), 1342686186: ('0.129538440883957',), 1342686133: ('0.129538440883957',), 1342686079: ('0.129538440883957',)} args : 1342686186 depend.output_id : 0 input_args_next_step : {1342687110: ('0.129538440883957',), 1342686534: ('0.129538440883957',), 1342686439: ('0.129538440883957',), 1342686207: ('0.129538440883957',), 1342686186: ('0.129538440883957',), 1342686133: ()} output_args : {1342687110: ('0.129538440883957',), 1342686534: ('0.129538440883957',), 1342686439: ('0.129538440883957',), 1342686207: ('0.129538440883957',), 1342686186: ('0.129538440883957',), 1342686133: ('0.129538440883957',), 1342686079: ('0.129538440883957',)} args : 1342686133 depend.output_id : 0 input_args_next_step : {1342687110: ('0.129538440883957',), 1342686534: ('0.129538440883957',), 1342686439: ('0.129538440883957',), 1342686207: ('0.129538440883957',), 1342686186: ('0.129538440883957',), 1342686133: ('0.129538440883957',), 1342686079: ()} output_args : {1342687110: ('0.129538440883957',), 1342686534: ('0.129538440883957',), 1342686439: ('0.129538440883957',), 1342686207: ('0.129538440883957',), 1342686186: ('0.129538440883957',), 1342686133: ('0.129538440883957',), 1342686079: ('0.129538440883957',)} args : 1342686079 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 : {21244713: [{'Teint_Dans_La_Masse': 21244826, 'mal_croppe': 21244828, 'papier': 21244830, 'flou': 21244832, 'metal': 21244834, 'Carton_brun': 21244836, 'Carton_gris': 21244838, 'kraft': 21244840, 'cartonnette': 21244842, 'plastique': 21244844, 'environnement': 21244846, 'autre_refus': 21244849}]} input_args_next_step : {1342687110: ('0.129538440883957',), 1342686534: ('0.129538440883957',), 1342686439: ('0.129538440883957',), 1342686207: ('0.129538440883957',), 1342686186: ('0.129538440883957',), 1342686133: ('0.129538440883957',), 1342686079: ('0.129538440883957',), 21244713: ()} output_args : {21244713: [{'Teint_Dans_La_Masse': 21244826, 'mal_croppe': 21244828, 'papier': 21244830, 'flou': 21244832, 'metal': 21244834, 'Carton_brun': 21244836, 'Carton_gris': 21244838, 'kraft': 21244840, 'cartonnette': 21244842, 'plastique': 21244844, 'environnement': 21244846, 'autre_refus': 21244849}]} args : 21244713 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 :8, first value : ('0.129538440883957',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21244713) 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 (1342687110,1342686534,1342686439,1342686207,1342686186,1342686133,1342686079) Found this number of photos: 7 ##### Call download_photos : nb_thread : 5 begin to download photo : 1342686079 begin to download photo : 1342686186 begin to download photo : 1342686439 begin to download photo : 1342687110 download finish for photo 1342686079 begin to download photo : 1342686133 download finish for photo 1342686439 begin to download photo : 1342686534 download finish for photo 1342687110 download finish for photo 1342686186 begin to download photo : 1342686207 download finish for photo 1342686133 download finish for photo 1342686534 download finish for photo 1342686207 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette212448281741642438/ imagette212448321741642438/ imagette212448341741642438/ imagette212448401741642438/ length of list_filenames : 7 ; length of list_pids : 7 ; length of list_args : 7 results_Auto_P21244713_10-03-2025_22_33_58.pdf 21244828 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=21244828 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212448281741642438 21244832 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=21244832 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212448321741642438 21244834 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=21244834 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212448341741642438 21244840 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=21244840 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212448401741642438 21244842 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=21244842 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342684363: '1741641686_501055_1342683384_d6e64e40d13dbe5df0091e12ad7197d6_rle_crop_3703591802_0.png', 1342684937: '1741641866_505486_1342684075_4a7bfd65b5ad052650ed4ca8f23fd7d0_rle_crop_3703594274_0.png', 1342684939: '1741641866_505486_1342684023_8dd600fa23c89ba370fb7e5651237cec_rle_crop_3703594310_0.png', 1342685254: '1741641871_126391_1342683764_1559dbdc49adbc3243193b9669845a99_rle_crop_3703595306_0.png', 1342685267: '1741641893_126618_1342683767_157eb24bf90416028d01a610a5a6554e_rle_crop_3703595415_0.png', 1342687008: '1741642216_129162_1342685993_395f448bb98df7da5f8a61048c72bec9_rle_crop_3703601542_0.png', 1342687009: '1741642216_129162_1342684830_08c1272c599d8f2a7b1af2d5073c4ec8_rle_crop_3703602310_0.png', 1342687692: '1741642349_512680_1342686186_af2340d982edea00bdd9063498c00721_rle_crop_3703606455_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/828ed3482951f05f273013e18e4c5ec4_90473352.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/e399cc5c6636c5c24e6392c0e5e7a12a_14660158.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/20c22103497ca9814e94bfe7a5640eb7_79237629.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/e9ae235a879d95d9d8f6007c283daae2_34161758.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/d249c7f3abf0ce00ce6f94f6fa2d221e_83994091.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/cd65ff870ebc5334be1f214b9b9004d0_40749141.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/a4438e4e8c3da3983b20b2d2d73920ec_55353364.png change filename to text .imagette212448421741642438/ imagette212448421741642438/1741642349_512680_1342686186_af2340d982edea00bdd9063498c00721_rle_crop_3703606455_0.png.png imagette212448421741642438/1741641871_126391_1342683764_1559dbdc49adbc3243193b9669845a99_rle_crop_3703595306_0.png.png imagette212448421741642438/1741641866_505486_1342684023_8dd600fa23c89ba370fb7e5651237cec_rle_crop_3703594310_0.png.png imagette212448421741642438/1741641686_501055_1342683384_d6e64e40d13dbe5df0091e12ad7197d6_rle_crop_3703591802_0.png.png imagette212448421741642438/1741641893_126618_1342683767_157eb24bf90416028d01a610a5a6554e_rle_crop_3703595415_0.png.png imagette212448421741642438/1741642216_129162_1342685993_395f448bb98df7da5f8a61048c72bec9_rle_crop_3703601542_0.png.png imagette212448421741642438/1741642216_129162_1342684830_08c1272c599d8f2a7b1af2d5073c4ec8_rle_crop_3703602310_0.png.png imagette212448421741642438/1741641866_505486_1342684075_4a7bfd65b5ad052650ed4ca8f23fd7d0_rle_crop_3703594274_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/39f14ef9248074ad6fe76cdc9f31147a_39986380.png imagette212448421741642438 21244844 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=21244844 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342684418: '1741641686_501055_1342683384_d6e64e40d13dbe5df0091e12ad7197d6_rle_crop_3703591811_0.png', 1342685289: '1741641871_126391_1342683764_1559dbdc49adbc3243193b9669845a99_rle_crop_3703595305_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/f88f3bad299a7a962b398a835554c080_23897849.png change filename to text .imagette212448441741642438/ imagette212448441741642438/1741641686_501055_1342683384_d6e64e40d13dbe5df0091e12ad7197d6_rle_crop_3703591811_0.png.png imagette212448441741642438/1741641871_126391_1342683764_1559dbdc49adbc3243193b9669845a99_rle_crop_3703595305_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/a7b34e6d22fa88a66c948b0ac33dc1cd_74389821.png imagette212448441741642438 21244849 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=21244849 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342685185: '1741641871_126391_1342684100_b51a2afeb88f2ece5a0dca016e1b1cd0_rle_crop_3703594949_0.png', 1342687691: '1741642349_512680_1342686186_af2340d982edea00bdd9063498c00721_rle_crop_3703606459_0.png', 1342687688: '1741642349_512680_1342686186_af2340d982edea00bdd9063498c00721_rle_crop_3703606457_0.png', 1342687687: '1741642349_512680_1342686534_ea50564301d8f065d7f6dc4ac14cbbf7_rle_crop_3703606431_0.png', 1342686992: '1741642216_129162_1342684830_08c1272c599d8f2a7b1af2d5073c4ec8_rle_crop_3703602313_0.png', 1342685849: '1741641974_127674_1342684749_672640f61b12679240804ce0a45eff58_rle_crop_3703596363_0.png', 1342685848: '1741641974_127674_1342684834_a12aa6162a3a36f6cb309b29bd46ffd2_rle_crop_3703596350_0.png', 1342685683: '1741641984_508509_1342684756_737af48bdda983c1bebcb231370b2ec5_rle_crop_3703596117_0.png', 1342685681: '1741641984_508509_1342684756_737af48bdda983c1bebcb231370b2ec5_rle_crop_3703596112_0.png', 1342685188: '1741641871_126391_1342683758_531c288c41966777083b95ebd751475d_rle_crop_3703595404_0.png', 1342685187: '1741641871_126391_1342683764_1559dbdc49adbc3243193b9669845a99_rle_crop_3703595318_0.png', 1342684192: '1741641674_124038_1342683610_d0a5597f0f39adc373a9e24db8a1794d_rle_crop_3703591592_0.png', 1342685183: '1741641871_126391_1342684100_b51a2afeb88f2ece5a0dca016e1b1cd0_rle_crop_3703594946_0.png', 1342684918: '1741641866_505486_1342684070_bcb432a321d66bbac729cfb99a5bdf1d_rle_crop_3703594296_0.png', 1342684916: '1741641866_505486_1342684075_4a7bfd65b5ad052650ed4ca8f23fd7d0_rle_crop_3703594280_0.png', 1342684616: '1741641694_124441_1342682903_07509901651e543a8d039daf276329dd_rle_crop_3703591789_0.png', 1342684614: '1741641694_124441_1342683462_6cae1bab32ea8fcbc14fe16f4df81205_rle_crop_3703591601_0.png', 1342684344: '1741641686_501055_1342683459_aef75c05c873c08f465da4a1df270d9a_rle_crop_3703591780_0.png', 1342684336: '1741641686_501055_1342683666_2d6b7805643989b093227b4bff131a2f_rle_crop_3703591735_0.png', 1342684334: '1741641686_501055_1342683666_2d6b7805643989b093227b4bff131a2f_rle_crop_3703591729_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/b7a80cca84a05898425208f3517c82df_42442514.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/8250df100d2c1fe9dd4b44dd87cc05d7_93180837.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/51f3b1e524d66ced3de2cc842e250f3e_27269474.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/f895299677005d74a58b0f08072b725d_74562504.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/274f36007f89d19e0996bfea1cc7ab77_37272379.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/9304f50fd9d9a777ce9bd25de78020cc_83766779.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/88c904e4b243cdcc92d208e9bde1f40a_86943718.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/2f2e5deefaf995ff71fe8c756b145e52_76133509.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/d6ea9029569a0e37b3e56a88f1f3a602_33199012.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/1de96cdd2f904901a72e3efe742c1adf_69778055.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/014373fde1310f6ebbe4b86b434f4e82_8001253.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/bd5ecb7d8ab30f58c36ff083be11ff5c_77331305.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/1b955802afa9a22df7ae1fca5a8d4f0c_25133826.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/989cbab2420c9652d3aa334b8cb4825c_24697561.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/28f4f6d15e74aa774824eee2adbdc25f_3149087.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/32f75b466d71f9fd6b50c39e2344697e_77235653.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/67d1ec3b4455e614717b845c27a04df1_61904971.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/4820add5e6e22f30c0c0c3fe414aca20_11799931.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/a5b64744a571bcf781217be768cdd71b_17461401.png change filename to text .imagette212448491741642439/ imagette212448491741642439/1741642349_512680_1342686534_ea50564301d8f065d7f6dc4ac14cbbf7_rle_crop_3703606431_0.png.png imagette212448491741642439/1741641866_505486_1342684075_4a7bfd65b5ad052650ed4ca8f23fd7d0_rle_crop_3703594280_0.png.png imagette212448491741642439/1741642216_129162_1342684830_08c1272c599d8f2a7b1af2d5073c4ec8_rle_crop_3703602313_0.png.png imagette212448491741642439/1741641974_127674_1342684749_672640f61b12679240804ce0a45eff58_rle_crop_3703596363_0.png.png imagette212448491741642439/1741641694_124441_1342683462_6cae1bab32ea8fcbc14fe16f4df81205_rle_crop_3703591601_0.png.png imagette212448491741642439/1741641686_501055_1342683666_2d6b7805643989b093227b4bff131a2f_rle_crop_3703591735_0.png.png imagette212448491741642439/1741641866_505486_1342684070_bcb432a321d66bbac729cfb99a5bdf1d_rle_crop_3703594296_0.png.png imagette212448491741642439/1741641984_508509_1342684756_737af48bdda983c1bebcb231370b2ec5_rle_crop_3703596117_0.png.png imagette212448491741642439/1741641984_508509_1342684756_737af48bdda983c1bebcb231370b2ec5_rle_crop_3703596112_0.png.png imagette212448491741642439/1741641694_124441_1342682903_07509901651e543a8d039daf276329dd_rle_crop_3703591789_0.png.png imagette212448491741642439/1741641686_501055_1342683459_aef75c05c873c08f465da4a1df270d9a_rle_crop_3703591780_0.png.png imagette212448491741642439/1741641871_126391_1342684100_b51a2afeb88f2ece5a0dca016e1b1cd0_rle_crop_3703594949_0.png.png imagette212448491741642439/1741641674_124038_1342683610_d0a5597f0f39adc373a9e24db8a1794d_rle_crop_3703591592_0.png.png imagette212448491741642439/1741641686_501055_1342683666_2d6b7805643989b093227b4bff131a2f_rle_crop_3703591729_0.png.png imagette212448491741642439/1741641871_126391_1342683758_531c288c41966777083b95ebd751475d_rle_crop_3703595404_0.png.png imagette212448491741642439/1741641871_126391_1342684100_b51a2afeb88f2ece5a0dca016e1b1cd0_rle_crop_3703594946_0.png.png imagette212448491741642439/1741641974_127674_1342684834_a12aa6162a3a36f6cb309b29bd46ffd2_rle_crop_3703596350_0.png.png imagette212448491741642439/1741642349_512680_1342686186_af2340d982edea00bdd9063498c00721_rle_crop_3703606459_0.png.png imagette212448491741642439/1741641871_126391_1342683764_1559dbdc49adbc3243193b9669845a99_rle_crop_3703595318_0.png.png imagette212448491741642439/1741642349_512680_1342686186_af2340d982edea00bdd9063498c00721_rle_crop_3703606457_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/4c2154430120385d9f43a83d61d53e2f_7576726.png imagette212448491741642439 21244826 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=21244826 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342684188: '1741641674_124038_1342683610_d0a5597f0f39adc373a9e24db8a1794d_rle_crop_3703591587_0.png', 1342684308: '1741641686_501055_1342683459_aef75c05c873c08f465da4a1df270d9a_rle_crop_3703591776_0.png', 1342684311: '1741641686_501055_1342683459_aef75c05c873c08f465da4a1df270d9a_rle_crop_3703591777_0.png', 1342684315: '1741641686_501055_1342683384_d6e64e40d13dbe5df0091e12ad7197d6_rle_crop_3703591807_0.png', 1342684591: '1741641694_124441_1342683462_6cae1bab32ea8fcbc14fe16f4df81205_rle_crop_3703591605_0.png', 1342684593: '1741641694_124441_1342683462_6cae1bab32ea8fcbc14fe16f4df81205_rle_crop_3703591604_0.png', 1342684905: '1741641866_505486_1342684023_8dd600fa23c89ba370fb7e5651237cec_rle_crop_3703594311_0.png', 1342684908: '1741641866_505486_1342684023_8dd600fa23c89ba370fb7e5651237cec_rle_crop_3703594317_0.png', 1342685838: '1741641974_127674_1342684834_a12aa6162a3a36f6cb309b29bd46ffd2_rle_crop_3703596352_0.png', 1342686980: '1741642216_129162_1342685993_395f448bb98df7da5f8a61048c72bec9_rle_crop_3703601551_0.png', 1342686982: '1741642216_129162_1342684830_08c1272c599d8f2a7b1af2d5073c4ec8_rle_crop_3703602316_0.png', 1342687673: '1741642349_512680_1342686534_ea50564301d8f065d7f6dc4ac14cbbf7_rle_crop_3703606433_0.png', 1342687674: '1741642349_512680_1342686186_af2340d982edea00bdd9063498c00721_rle_crop_3703606469_0.png', 1342687676: '1741642349_512680_1342686133_af15e5cf8e4d7e71420a985dff1f7ba8_rle_crop_3703606489_0.png', 1342687679: '1741642349_512680_1342686133_af15e5cf8e4d7e71420a985dff1f7ba8_rle_crop_3703606480_0.png', 1342687681: '1741642349_512680_1342686079_1f861e50237501428d1a8e8a62f88adb_rle_crop_3703606499_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/92ef1f415eec332c75cb97d50389ca9f_89067307.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/71205be25bc04277535be0684d6759fa_5433494.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/ccd23481b18966648af370e5de09ae79_29868859.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/72304c62ab427f88daf35adc180268ac_91941401.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/ab47a2bed1e5070f0efdf17a06869ce5_17411137.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/181a2624cd8127766420ea9fc4878460_42977455.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/1b23b898bd01d1d5513385642a208db6_80069680.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/b80b7616a7074e6ff7256ddb9f4344a8_44847977.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/5d84579bc4c2bb0e7af88a79ad8ced2d_37822456.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/4cb42b3223a458e595a5243ff29259b0_15003757.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/fc1535535310083c603ee02c7ed0993b_28031924.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/f32b034d8d462902b449912cdfc1196a_86167495.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/9cd61e310429069f61d3ec47c0d0f1a1_5979836.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/3062b6777037fbef2c3c7af116b9ecfa_43997957.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/a216d9a1828bda915798347ce1513d5a_68233413.png change filename to text .imagette212448261741642440/ imagette212448261741642440/1741642216_129162_1342685993_395f448bb98df7da5f8a61048c72bec9_rle_crop_3703601551_0.png.png imagette212448261741642440/1741642216_129162_1342684830_08c1272c599d8f2a7b1af2d5073c4ec8_rle_crop_3703602316_0.png.png imagette212448261741642440/1741642349_512680_1342686133_af15e5cf8e4d7e71420a985dff1f7ba8_rle_crop_3703606489_0.png.png imagette212448261741642440/1741641686_501055_1342683384_d6e64e40d13dbe5df0091e12ad7197d6_rle_crop_3703591807_0.png.png imagette212448261741642440/1741641694_124441_1342683462_6cae1bab32ea8fcbc14fe16f4df81205_rle_crop_3703591604_0.png.png imagette212448261741642440/1741641694_124441_1342683462_6cae1bab32ea8fcbc14fe16f4df81205_rle_crop_3703591605_0.png.png imagette212448261741642440/1741641866_505486_1342684023_8dd600fa23c89ba370fb7e5651237cec_rle_crop_3703594311_0.png.png imagette212448261741642440/1741641686_501055_1342683459_aef75c05c873c08f465da4a1df270d9a_rle_crop_3703591777_0.png.png imagette212448261741642440/1741642349_512680_1342686534_ea50564301d8f065d7f6dc4ac14cbbf7_rle_crop_3703606433_0.png.png imagette212448261741642440/1741641686_501055_1342683459_aef75c05c873c08f465da4a1df270d9a_rle_crop_3703591776_0.png.png imagette212448261741642440/1741641974_127674_1342684834_a12aa6162a3a36f6cb309b29bd46ffd2_rle_crop_3703596352_0.png.png imagette212448261741642440/1741642349_512680_1342686133_af15e5cf8e4d7e71420a985dff1f7ba8_rle_crop_3703606480_0.png.png imagette212448261741642440/1741641866_505486_1342684023_8dd600fa23c89ba370fb7e5651237cec_rle_crop_3703594317_0.png.png imagette212448261741642440/1741642349_512680_1342686079_1f861e50237501428d1a8e8a62f88adb_rle_crop_3703606499_0.png.png imagette212448261741642440/1741641674_124038_1342683610_d0a5597f0f39adc373a9e24db8a1794d_rle_crop_3703591587_0.png.png imagette212448261741642440/1741642349_512680_1342686186_af2340d982edea00bdd9063498c00721_rle_crop_3703606469_0.png.png wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/b1311461cae9f151fdb43d5a1fddfb41_60423872.png imagette212448261741642440 21244836 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=21244836 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342685859: '1741641974_127674_1342684834_a12aa6162a3a36f6cb309b29bd46ffd2_rle_crop_3703596346_0.png', 1342687703: '1741642349_512680_1342686133_af15e5cf8e4d7e71420a985dff1f7ba8_rle_crop_3703606482_0.png', 1342687701: '1741642349_512680_1342686186_af2340d982edea00bdd9063498c00721_rle_crop_3703606460_0.png', 1342687700: '1741642349_512680_1342686534_ea50564301d8f065d7f6dc4ac14cbbf7_rle_crop_3703606426_0.png', 1342687076: '1741642216_129162_1342684830_08c1272c599d8f2a7b1af2d5073c4ec8_rle_crop_3703602315_0.png', 1342687075: '1741642216_129162_1342684830_08c1272c599d8f2a7b1af2d5073c4ec8_rle_crop_3703602312_0.png', 1342687074: '1741642216_129162_1342685993_395f448bb98df7da5f8a61048c72bec9_rle_crop_3703601546_0.png', 1342687073: '1741642216_129162_1342685993_395f448bb98df7da5f8a61048c72bec9_rle_crop_3703601547_0.png', 1342687072: '1741642216_129162_1342685993_395f448bb98df7da5f8a61048c72bec9_rle_crop_3703601548_0.png', 1342685862: '1741641974_127674_1342684749_672640f61b12679240804ce0a45eff58_rle_crop_3703596365_0.png', 1342685861: '1741641974_127674_1342684834_a12aa6162a3a36f6cb309b29bd46ffd2_rle_crop_3703596349_0.png', 1342684201: '1741641674_124038_1342683610_d0a5597f0f39adc373a9e24db8a1794d_rle_crop_3703591585_0.png', 1342685266: '1741641871_126391_1342683764_1559dbdc49adbc3243193b9669845a99_rle_crop_3703595317_0.png', 1342685265: '1741641871_126391_1342684100_b51a2afeb88f2ece5a0dca016e1b1cd0_rle_crop_3703594945_0.png', 1342684950: '1741641866_505486_1342684023_8dd600fa23c89ba370fb7e5651237cec_rle_crop_3703594312_0.png', 1342684948: '1741641866_505486_1342684070_bcb432a321d66bbac729cfb99a5bdf1d_rle_crop_3703594292_0.png', 1342684946: '1741641866_505486_1342684075_4a7bfd65b5ad052650ed4ca8f23fd7d0_rle_crop_3703594277_0.png', 1342684397: '1741641686_501055_1342683384_d6e64e40d13dbe5df0091e12ad7197d6_rle_crop_3703591810_0.png', 1342684393: '1741641686_501055_1342683384_d6e64e40d13dbe5df0091e12ad7197d6_rle_crop_3703591808_0.png', 1342684389: '1741641686_501055_1342683459_aef75c05c873c08f465da4a1df270d9a_rle_crop_3703591779_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/f8ed4914477c7cfdac379f73a81fbb11_25320282.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/42c8a35954961a09fbf7e486ee19dfcc_84328266.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/320903a16a324b77b1a2c951faa8cb23_25525783.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/138d307b52835f2317e1f1f383e40878_85538291.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/980fc7a1875a9e7bcadf2f2603e6930d_84181490.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/deddbc451b946a43f7a1a2d1a8016f7a_35047914.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/d15419eac54589bc01f2401d9682ccbb_75776397.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/c5bf277b66245da2db14216ed0df9e5c_10794485.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/90a1c388e7ce99c38ad60b8c9f03f218_68389119.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/9ac018b0be31e8e4d8423a941a21a069_90764812.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/c44abd12c928e7aa400eb186cd9e41da_92208778.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/6dff46ba8ea609cdeb4247576915669a_81830112.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/6efebe49daa395a0f5542e813339995e_77560216.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/3937a010de185ead9e8cc84683b8d5c8_58902980.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/8011abf5da602ad761688073f9ddc555_63172518.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/7e218074df76cda50e59f0ee5253f341_35564582.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/b52cacb2d0ede06f0ef761c3489ac933_79448482.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/d3bf53b6aaa8ac69592c5e6b87545207_93525779.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/425dcc2ec548e8a3edd3e4e2c42a78f3_35735174.png change filename to text .imagette212448361741642440/ imagette212448361741642440/1741642216_129162_1342685993_395f448bb98df7da5f8a61048c72bec9_rle_crop_3703601546_0.png.png imagette212448361741642440/1741641974_127674_1342684834_a12aa6162a3a36f6cb309b29bd46ffd2_rle_crop_3703596346_0.png.png imagette212448361741642440/1741642216_129162_1342685993_395f448bb98df7da5f8a61048c72bec9_rle_crop_3703601547_0.png.png imagette212448361741642440/1741641686_501055_1342683384_d6e64e40d13dbe5df0091e12ad7197d6_rle_crop_3703591810_0.png.png imagette212448361741642440/1741642349_512680_1342686186_af2340d982edea00bdd9063498c00721_rle_crop_3703606460_0.png.png imagette212448361741642440/1741642349_512680_1342686534_ea50564301d8f065d7f6dc4ac14cbbf7_rle_crop_3703606426_0.png.png imagette212448361741642440/1741642216_129162_1342684830_08c1272c599d8f2a7b1af2d5073c4ec8_rle_crop_3703602312_0.png.png imagette212448361741642440/1741641866_505486_1342684023_8dd600fa23c89ba370fb7e5651237cec_rle_crop_3703594312_0.png.png imagette212448361741642440/1741641871_126391_1342684100_b51a2afeb88f2ece5a0dca016e1b1cd0_rle_crop_3703594945_0.png.png imagette212448361741642440/1741641871_126391_1342683764_1559dbdc49adbc3243193b9669845a99_rle_crop_3703595317_0.png.png imagette212448361741642440/1741642349_512680_1342686133_af15e5cf8e4d7e71420a985dff1f7ba8_rle_crop_3703606482_0.png.png imagette212448361741642440/1741641686_501055_1342683459_aef75c05c873c08f465da4a1df270d9a_rle_crop_3703591779_0.png.png imagette212448361741642440/1741641686_501055_1342683384_d6e64e40d13dbe5df0091e12ad7197d6_rle_crop_3703591808_0.png.png imagette212448361741642440/1741642216_129162_1342684830_08c1272c599d8f2a7b1af2d5073c4ec8_rle_crop_3703602315_0.png.png imagette212448361741642440/1741641866_505486_1342684070_bcb432a321d66bbac729cfb99a5bdf1d_rle_crop_3703594292_0.png.png imagette212448361741642440/1741641974_127674_1342684749_672640f61b12679240804ce0a45eff58_rle_crop_3703596365_0.png.png imagette212448361741642440/1741641974_127674_1342684834_a12aa6162a3a36f6cb309b29bd46ffd2_rle_crop_3703596349_0.png.png imagette212448361741642440/1741642216_129162_1342685993_395f448bb98df7da5f8a61048c72bec9_rle_crop_3703601548_0.png.png imagette212448361741642440/1741641674_124038_1342683610_d0a5597f0f39adc373a9e24db8a1794d_rle_crop_3703591585_0.png.png imagette212448361741642440/1741641866_505486_1342684075_4a7bfd65b5ad052650ed4ca8f23fd7d0_rle_crop_3703594277_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/ccc240544e95f146d4e879b97e90aec5_24866555.png imagette212448361741642440 21244838 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=21244838 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342684197: '1741641674_124038_1342683610_d0a5597f0f39adc373a9e24db8a1794d_rle_crop_3703591589_0.png', 1342684198: '1741641674_124038_1342683606_6d6375a6e0a975e5e534976b3d8fa886_rle_crop_3703591680_0.png', 1342684927: '1741641866_505486_1342684075_4a7bfd65b5ad052650ed4ca8f23fd7d0_rle_crop_3703594273_0.png', 1342684929: '1741641866_505486_1342684070_bcb432a321d66bbac729cfb99a5bdf1d_rle_crop_3703594291_0.png', 1342685234: '1741641871_126391_1342684100_b51a2afeb88f2ece5a0dca016e1b1cd0_rle_crop_3703594948_0.png', 1342685235: '1741641871_126391_1342683764_1559dbdc49adbc3243193b9669845a99_rle_crop_3703595310_0.png', 1342685238: '1741641871_126391_1342683764_1559dbdc49adbc3243193b9669845a99_rle_crop_3703595311_0.png', 1342685239: '1741641871_126391_1342683764_1559dbdc49adbc3243193b9669845a99_rle_crop_3703595313_0.png', 1342685240: '1741641871_126391_1342683764_1559dbdc49adbc3243193b9669845a99_rle_crop_3703595308_0.png', 1342685241: '1741641871_126391_1342683758_531c288c41966777083b95ebd751475d_rle_crop_3703595396_0.png', 1342685242: '1741641871_126391_1342683758_531c288c41966777083b95ebd751475d_rle_crop_3703595408_0.png', 1342685257: '1741641893_126618_1342683767_157eb24bf90416028d01a610a5a6554e_rle_crop_3703595423_0.png', 1342685258: '1741641893_126618_1342683767_157eb24bf90416028d01a610a5a6554e_rle_crop_3703595416_0.png', 1342687002: '1741642216_129162_1342685993_395f448bb98df7da5f8a61048c72bec9_rle_crop_3703601539_0.png', 1342687003: '1741642216_129162_1342685993_395f448bb98df7da5f8a61048c72bec9_rle_crop_3703601537_0.png', 1342687004: '1741642216_129162_1342684830_08c1272c599d8f2a7b1af2d5073c4ec8_rle_crop_3703602309_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/eb6b4f5c86318dfa2096710b2469ad3f_19832857.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/59fcfdf97d356a43accf6e91d3f51bd0_61896847.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/93e8a4dc84ca846e74bb54fa5081031b_2911560.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/3f5fa3e94c27e4354c52567cc69bed90_7525976.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/01892d84ab3d5e62d9438bb83679406a_62896997.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/325e6b61d14a84c61b0c1cf7b81b892e_42001342.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/377e455278f648c5cdd7729ec5771493_29124707.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/71784a172c0388b3da9e6a30f0698c69_83778423.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/750ef3148a3b3838a5d1778de4ee873e_96140150.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/286140d43503bcb7640ddfaff907e982_26164521.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/a9dc6b0b7da3bd87da00f24e7c809be7_43756165.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/9cc5c9e73cff3b66090e47db7bfff8de_46175266.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/d71f07c2c72beaeb3564e13895d96045_68062628.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/2e7fad981753c61f81d1f62ff758d773_23935059.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/e142100f0fc9cbe4c92187874e31ca14_88617273.png change filename to text .imagette212448381741642441/ imagette212448381741642441/1741641893_126618_1342683767_157eb24bf90416028d01a610a5a6554e_rle_crop_3703595416_0.png.png imagette212448381741642441/1741641871_126391_1342683764_1559dbdc49adbc3243193b9669845a99_rle_crop_3703595310_0.png.png imagette212448381741642441/1741641871_126391_1342683764_1559dbdc49adbc3243193b9669845a99_rle_crop_3703595311_0.png.png imagette212448381741642441/1741641674_124038_1342683606_6d6375a6e0a975e5e534976b3d8fa886_rle_crop_3703591680_0.png.png imagette212448381741642441/1741641893_126618_1342683767_157eb24bf90416028d01a610a5a6554e_rle_crop_3703595423_0.png.png imagette212448381741642441/1741641871_126391_1342683764_1559dbdc49adbc3243193b9669845a99_rle_crop_3703595308_0.png.png imagette212448381741642441/1741642216_129162_1342685993_395f448bb98df7da5f8a61048c72bec9_rle_crop_3703601537_0.png.png imagette212448381741642441/1741642216_129162_1342685993_395f448bb98df7da5f8a61048c72bec9_rle_crop_3703601539_0.png.png imagette212448381741642441/1741641866_505486_1342684075_4a7bfd65b5ad052650ed4ca8f23fd7d0_rle_crop_3703594273_0.png.png imagette212448381741642441/1741641871_126391_1342684100_b51a2afeb88f2ece5a0dca016e1b1cd0_rle_crop_3703594948_0.png.png imagette212448381741642441/1741641866_505486_1342684070_bcb432a321d66bbac729cfb99a5bdf1d_rle_crop_3703594291_0.png.png imagette212448381741642441/1741642216_129162_1342684830_08c1272c599d8f2a7b1af2d5073c4ec8_rle_crop_3703602309_0.png.png imagette212448381741642441/1741641871_126391_1342683758_531c288c41966777083b95ebd751475d_rle_crop_3703595408_0.png.png imagette212448381741642441/1741641871_126391_1342683764_1559dbdc49adbc3243193b9669845a99_rle_crop_3703595313_0.png.png imagette212448381741642441/1741641871_126391_1342683758_531c288c41966777083b95ebd751475d_rle_crop_3703595396_0.png.png imagette212448381741642441/1741641674_124038_1342683610_d0a5597f0f39adc373a9e24db8a1794d_rle_crop_3703591589_0.png.png wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/f90825d9338a2473967942078560c6f8_58649682.png imagette212448381741642441 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21244713 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21244850,21244851,21244852,21244853,21244854,21244855,21244856,21244857,21244858,21244859,21244860,21244861?tags=Teint_Dans_La_Masse,mal_croppe,papier,flou,metal,Carton_brun,Carton_gris,kraft,cartonnette,plastique,environnement,autre_refus your option no_mail is active, we will not send the real mail to your client args[1342687110] : ('0.129538440883957',) no score found for photo 1342687110 We are sending mail with results at report@fotonower.com args[1342686534] : ('0.129538440883957',) no score found for photo 1342686534 We are sending mail with results at report@fotonower.com args[1342686439] : ('0.129538440883957',) no score found for photo 1342686439 We are sending mail with results at report@fotonower.com args[1342686207] : ('0.129538440883957',) no score found for photo 1342686207 We are sending mail with results at report@fotonower.com args[1342686186] : ('0.129538440883957',) no score found for photo 1342686186 We are sending mail with results at report@fotonower.com args[1342686133] : ('0.129538440883957',) no score found for photo 1342686133 We are sending mail with results at report@fotonower.com args[1342686079] : ('0.129538440883957',) no score found for photo 1342686079 We are sending mail with results at report@fotonower.com refus_total : 0.129538440883957 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=21244713 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_P21244713_10-03-2025_22_33_58.pdf results_Auto_P21244713_10-03-2025_22_33_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21244713_10-03-2025_22_33_58.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','21244713','results_Auto_P21244713_10-03-2025_22_33_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21244713_10-03-2025_22_33_58.pdf','pdf','','0.32','0.129538440883957') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21244713]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1342687110, 1342686534, 1342686439, 1342686207, 1342686186, 1342686133, 1342686079] map_info['map_portfolio_photo'] : {21244713: [1342687110, 1342686534, 1342686439, 1342686207, 1342686186, 1342686133, 1342686079, 1342685993, 1342685614, 1342684834, 1342684830, 1342684756, 1342684749, 1342684555, 1342684483, 1342684100, 1342684075, 1342684070, 1342684023, 1342683767, 1342683764, 1342683758, 1342683666, 1342683610, 1342683606, 1342683462, 1342683459, 1342683384, 1342682919, 1342682912, 1342682903]} final : False mtd_id 4302 list_pids : [1342687110, 1342686534, 1342686439, 1342686207, 1342686186, 1342686133, 1342686079] 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, '2655885') ('4302', '21244713', '1342687110', None, None, None, None, None, '2655885') ('4302', None, None, None, None, None, None, None, '2655885') ('4302', '21244713', '1342686534', None, None, None, None, None, '2655885') ('4302', None, None, None, None, None, None, None, '2655885') ('4302', '21244713', '1342686439', None, None, None, None, None, '2655885') ('4302', None, None, None, None, None, None, None, '2655885') ('4302', '21244713', '1342686207', None, None, None, None, None, '2655885') ('4302', None, None, None, None, None, None, None, '2655885') ('4302', '21244713', '1342686186', None, None, None, None, None, '2655885') ('4302', None, None, None, None, None, None, None, '2655885') ('4302', '21244713', '1342686133', None, None, None, None, None, '2655885') ('4302', None, None, None, None, None, None, None, '2655885') ('4302', '21244713', '1342686079', None, None, None, None, None, '2655885') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 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', '21244713', '1342687110', None, None, None, None, None, '2655885'), ('4302', '21244713', '1342686534', None, None, None, None, None, '2655885'), ('4302', '21244713', '1342686439', None, None, None, None, None, '2655885'), ('4302', '21244713', '1342686207', None, None, None, None, None, '2655885'), ('4302', '21244713', '1342686186', None, None, None, None, None, '2655885'), ('4302', '21244713', '1342686133', None, None, None, None, None, '2655885'), ('4302', '21244713', '1342686079', None, None, None, None, None, '2655885')] time used for this insertion : 0.015738725662231445 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.541767358779907 time spend to save output : 0.016021013259887695 total time spend for step 4 : 5.557788372039795 step5:split_time_score Mon Mar 10 22:34: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 : ['21244713'] 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 : [('21244713',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21244713) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1342687110: {'path': 'temp/1741642438_1146351_1342687110_08ecce3ebda0cb27db2ed8df49ef2b32.jpg', 'extension': 'jpg'}, 1342686079: {'path': 'temp/1741642438_1146351_1342686079_1f861e50237501428d1a8e8a62f88adb.jpg', 'extension': 'jpg'}, 1342686133: {'path': 'temp/1741642438_1146351_1342686133_af15e5cf8e4d7e71420a985dff1f7ba8.jpg', 'extension': 'jpg'}, 1342686439: {'path': 'temp/1741642438_1146351_1342686439_977afc091933c6f5e2880a3a805ee6ac.jpg', 'extension': 'jpg'}, 1342686534: {'path': 'temp/1741642438_1146351_1342686534_ea50564301d8f065d7f6dc4ac14cbbf7.jpg', 'extension': 'jpg'}, 1342686186: {'path': 'temp/1741642438_1146351_1342686186_af2340d982edea00bdd9063498c00721.jpg', 'extension': 'jpg'}, 1342686207: {'path': 'temp/1741642438_1146351_1342686207_e9c354473d3b293f3c6c5fddcb40d5bf.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 = 21244713; (('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 = 21244713 group by h (('22', 31),) 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=21244713 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 (21244713) 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 (21244713) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 10032025 21244713 Nombre de photos uploadées : 31 / 23040 (0%) 10032025 21244713 Nombre de photos taguées (types de déchets): 0 / 31 (0%) 10032025 21244713 Nombre de photos taguées (volume) : 0 / 31 (0%) [{'photo_id': 1342682919, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/c4c909fefea908538aad621217bb1304.jpg', 'username': None, 'uploaded_at': 1741641457, 'text': 'image_10032025_22_15_04_10153.jpg'}, {'photo_id': 1342682912, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/cdfd357e0a93a2d4f807add23de5abfd.jpg', 'username': None, 'uploaded_at': 1741641457, 'text': 'image_10032025_22_16_04_010142m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1342682903, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/07509901651e543a8d039daf276329dd.jpg', 'username': None, 'uploaded_at': 1741641457, 'text': 'image_10032025_22_16_14_010135m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1342683462, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/10/6cae1bab32ea8fcbc14fe16f4df81205.jpg', 'username': None, 'uploaded_at': 1741641517, 'text': 'image_10032025_22_16_53_010139m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 8.821487426757812e-06 elapsed_time : order_list_meta_photo_and_scores 1.1682510375976562e-05 ??????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0014386177062988281 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21244713, '2025-03-10' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1654691,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02847599983215332 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= 1654691 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1654691, 'dashboard_run_id': 1663903, 'mtr_portfolio_id': 21243106, 'dashboard_result_id': 9324700, '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_P21243106_10-03-2025_22_04_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21243120, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21243121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21243122, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21243123, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21243124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21243125, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21243126, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21243127, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21243128, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21243129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21243130, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21243131, 'pht': 3726}}"}, {'dashboat_entry_day': 1654691, 'dashboard_run_id': 1663903, 'mtr_portfolio_id': 21244092, 'dashboard_result_id': 9324701, '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_P21244092_10-03-2025_22_17_04.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21244093, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21244094, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21244095, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21244096, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21244097, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21244098, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21244099, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21244100, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21244101, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21244102, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21244103, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21244104, 'pht': 3726}}"}, {'dashboat_entry_day': 1654691, 'dashboard_run_id': 1663903, 'mtr_portfolio_id': 21244713, 'dashboard_result_id': 9324702, '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_P21244713_10-03-2025_22_30_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21244826, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21244828, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21244830, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21244832, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21244834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21244836, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21244838, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21244840, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21244842, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21244844, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21244846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21244849, '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 = 21243106 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': 2655745, 'mtr_portfolio_id': 21243106, 'created_at': datetime.datetime(2025, 3, 10, 22, 4, 57), 'result': '0.09806089868401818', 'result_long': None, 'result_double': None}] Qualite : 0.09806089868401818 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21243106 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21243106_10-03-2025_22_04_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21243106 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_P21243106_10-03-2025_22_04_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21243120, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21243121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21243122, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21243123, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21243124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21243125, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21243126, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21243127, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21243128, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21243129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21243130, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21243131, 'pht': 3726}}" where mtr_portfolio_id = 21243106 and dashboard_run_id = 1663903 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`=21243106 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9324700, 0.09806089868401818, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21243106_10-03-2025_22_04_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21243120, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21243121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21243122, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21243123, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21243124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21243125, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21243126, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21243127, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21243128, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21243129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21243130, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21243131, '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 = 21244092 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': 2655840, 'mtr_portfolio_id': 21244092, 'created_at': datetime.datetime(2025, 3, 10, 22, 17, 3), 'result': '0.09518197959924725', 'result_long': None, 'result_double': None}] Qualite : 0.09518197959924725 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21244092 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21244092_10-03-2025_22_17_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21244092 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_P21244092_10-03-2025_22_17_04.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21244093, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21244094, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21244095, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21244096, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21244097, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21244098, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21244099, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21244100, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21244101, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21244102, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21244103, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21244104, 'pht': 3726}}" where mtr_portfolio_id = 21244092 and dashboard_run_id = 1663903 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`=21244092 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9324701, 0.09518197959924725, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21244092_10-03-2025_22_17_04.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21244093, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21244094, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21244095, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21244096, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21244097, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21244098, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21244099, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21244100, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21244101, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21244102, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21244103, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21244104, '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 = 21244713 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': 2655885, 'mtr_portfolio_id': 21244713, 'created_at': datetime.datetime(2025, 3, 10, 22, 33, 57), 'result': '0.129538440883957', 'result_long': None, 'result_double': None}] Qualite : 0.129538440883957 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21244713 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21244713_10-03-2025_22_33_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21244713 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_P21244713_10-03-2025_22_33_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21244826, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21244828, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21244830, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21244832, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21244834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21244836, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21244838, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21244840, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21244842, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21244844, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21244846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21244849, 'pht': 3726}}" where mtr_portfolio_id = 21244713 and dashboard_run_id = 1663903 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`=21244713 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9324702, 0.129538440883957, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21244713_10-03-2025_22_33_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21244826, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21244828, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21244830, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21244832, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21244834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21244836, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21244838, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21244840, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21244842, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21244844, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21244846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21244849, '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 (21243106,21244092,21244713) result : ((1342675019,), (1342675443,), (1342675449,), (1342675452,), (1342675457,), (1342675459,), (1342675712,), (1342675734,), (1342676063,), (1342676089,), (1342676108,), (1342676662,), (1342676682,), (1342676727,), (1342676834,), (1342676841,), (1342676844,), (1342676864,), (1342677027,), (1342677098,), (1342677162,), (1342677202,), (1342677258,), (1342677263,), (1342677267,), (1342677272,), (1342677275,), (1342677334,), (1342677338,), (1342677804,), (1342677830,), (1342677881,), (1342678072,), (1342678076,), (1342678079,), (1342678080,), (1342678156,), (1342678162,), (1342678168,), (1342678172,), (1342678329,), (1342678369,), (1342678380,), (1342678400,), (1342678723,), (1342678731,), (1342678771,), (1342679021,), (1342678879,), (1342678906,), (1342678981,), (1342679311,), (1342679740,), (1342679761,), (1342679777,), (1342680017,), (1342680021,), (1342680527,), (1342680530,), (1342680534,), (1342680537,), (1342680634,), (1342680639,), (1342680642,), (1342680681,), (1342680824,), (1342680843,), (1342680946,), (1342680949,), (1342680956,), (1342681281,), (1342681412,), (1342681416,), (1342681419,), (1342681515,), (1342681580,), (1342681607,), (1342681688,), (1342681768,), (1342682358,), (1342682416,), (1342682443,), (1342682456,), (1342682542,), (1342682547,), (1342682550,), (1342682657,), (1342682661,), (1342682728,), (1342682903,), (1342682912,), (1342682919,), (1342683384,), (1342683459,), (1342683462,), (1342683606,), (1342683610,), (1342683666,), (1342683758,), (1342683764,), (1342683767,), (1342684023,), (1342684070,), (1342684075,), (1342684100,), (1342684483,), (1342684555,), (1342684749,), (1342684756,), (1342684830,), (1342684834,), (1342685614,), (1342685993,), (1342686079,), (1342686133,), (1342686186,), (1342686207,), (1342686439,), (1342686534,), (1342687110,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'10032025': {'nb_upload': 31, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21244713]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1342687110, 1342686534, 1342686439, 1342686207, 1342686186, 1342686133, 1342686079] map_info['map_portfolio_photo'] : {21244713: [1342687110, 1342686534, 1342686439, 1342686207, 1342686186, 1342686133, 1342686079, 1342685993, 1342685614, 1342684834, 1342684830, 1342684756, 1342684749, 1342684555, 1342684483, 1342684100, 1342684075, 1342684070, 1342684023, 1342683767, 1342683764, 1342683758, 1342683666, 1342683610, 1342683606, 1342683462, 1342683459, 1342683384, 1342682919, 1342682912, 1342682903]} final : True mtd_id 4302 list_pids : [1342687110, 1342686534, 1342686439, 1342686207, 1342686186, 1342686133, 1342686079] Looping around the photos to save general results len do output : 1 /21244713Didn'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, '2655885') ('4302', '21244713', '1342687110', None, None, None, None, None, '2655885') ('4302', None, None, None, None, None, None, None, '2655885') ('4302', '21244713', '1342686534', None, None, None, None, None, '2655885') ('4302', None, None, None, None, None, None, None, '2655885') ('4302', '21244713', '1342686439', None, None, None, None, None, '2655885') ('4302', None, None, None, None, None, None, None, '2655885') ('4302', '21244713', '1342686207', None, None, None, None, None, '2655885') ('4302', None, None, None, None, None, None, None, '2655885') ('4302', '21244713', '1342686186', None, None, None, None, None, '2655885') ('4302', None, None, None, None, None, None, None, '2655885') ('4302', '21244713', '1342686133', None, None, None, None, None, '2655885') ('4302', None, None, None, None, None, None, None, '2655885') ('4302', '21244713', '1342686079', None, None, None, None, None, '2655885') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 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, '21244713', 'None', None, None, None, None, '2655885'), ('4302', '21244713', '1342687110', None, None, None, None, None, '2655885'), ('4302', '21244713', '1342686534', None, None, None, None, None, '2655885'), ('4302', '21244713', '1342686439', None, None, None, None, None, '2655885'), ('4302', '21244713', '1342686207', None, None, None, None, None, '2655885'), ('4302', '21244713', '1342686186', None, None, None, None, None, '2655885'), ('4302', '21244713', '1342686133', None, None, None, None, None, '2655885'), ('4302', '21244713', '1342686079', None, None, None, None, None, '2655885')] time used for this insertion : 0.014017581939697266 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.40023255348205566 time spend to save output : 0.014436721801757812 total time spend for step 5 : 0.4146692752838135 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 (2655885) 2.29user 2.36system 0:09.66elapsed 48%CPU (0avgtext+0avgdata 158436maxresident)k 53360inputs+16336outputs (200major+74619minor)pagefaults 0swaps