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 : 2964990 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 (2708508) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2708508) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21904049 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2708508'] with mtr_portfolio_ids : ['21904049'] and first list_photo_ids : [] new path : /proc/2964990/ Name: python3 Umask: 0002 State: R (running) Tgid: 2964990 Ngid: 0 Pid: 2964990 PPid: 2964989 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2964990 NSpid: 2964990 NSpgid: 2961837 NSsid: 2961837 VmPeak: 1106928 kB VmSize: 1106928 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98368 kB VmRSS: 98368 kB RssAnon: 59756 kB RssFile: 38612 kB RssShmem: 0 kB VmData: 865676 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 592 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: 99 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2964990', 'Ngid': '0', 'Pid': '2964990', 'PPid': '2964989', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2964990', 'NSpid': '2964990', 'NSpgid': '2961837', 'NSsid': '2961837', 'VmPeak': '1106928 kB', 'VmSize': '1106928 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98368 kB', 'VmRSS': '98368 kB', 'RssAnon': '59756 kB', 'RssFile': '38612 kB', 'RssShmem': '0 kB', 'VmData': '865676 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '592 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': '99'} ('datou_batch_current', '2964990', '1106928', '0', '1106928', '865676', '98368', b'', 'marlene', '2708508') 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 (21904049) 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 (2708508 ) ) 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 (21904049) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1348981086, 'portfolio_id': 21904049}, {'photo_id': 1348981084, 'portfolio_id': 21904049}, {'photo_id': 1348980839, 'portfolio_id': 21904049}, {'photo_id': 1348980835, 'portfolio_id': 21904049}, {'photo_id': 1348980830, 'portfolio_id': 21904049}, {'photo_id': 1348980761, 'portfolio_id': 21904049}, {'photo_id': 1348980715, 'portfolio_id': 21904049}, {'photo_id': 1348980713, 'portfolio_id': 21904049}, {'photo_id': 1348980711, 'portfolio_id': 21904049}, {'photo_id': 1348980658, 'portfolio_id': 21904049}, {'photo_id': 1348980656, 'portfolio_id': 21904049}, {'photo_id': 1348980444, 'portfolio_id': 21904049}, {'photo_id': 1348980424, 'portfolio_id': 21904049}, {'photo_id': 1348980372, 'portfolio_id': 21904049}, {'photo_id': 1348980323, 'portfolio_id': 21904049}, {'photo_id': 1348980297, 'portfolio_id': 21904049}, {'photo_id': 1348979880, 'portfolio_id': 21904049}, {'photo_id': 1348979855, 'portfolio_id': 21904049}, {'photo_id': 1348979831, 'portfolio_id': 21904049}, {'photo_id': 1348979797, 'portfolio_id': 21904049}, {'photo_id': 1348979782, 'portfolio_id': 21904049}, {'photo_id': 1348979689, 'portfolio_id': 21904049}, {'photo_id': 1348979683, 'portfolio_id': 21904049}, {'photo_id': 1348979677, 'portfolio_id': 21904049}, {'photo_id': 1348979668, 'portfolio_id': 21904049}, {'photo_id': 1348979499, 'portfolio_id': 21904049}, {'photo_id': 1348979454, 'portfolio_id': 21904049}, {'photo_id': 1348979421, 'portfolio_id': 21904049}, {'photo_id': 1348979418, 'portfolio_id': 21904049}, {'photo_id': 1348979142, 'portfolio_id': 21904049}, {'photo_id': 1348979116, 'portfolio_id': 21904049}, {'photo_id': 1348979096, 'portfolio_id': 21904049}, {'photo_id': 1348978952, 'portfolio_id': 21904049}, {'photo_id': 1348978921, 'portfolio_id': 21904049}, {'photo_id': 1348978912, 'portfolio_id': 21904049}, {'photo_id': 1348978909, 'portfolio_id': 21904049}, {'photo_id': 1348978795, 'portfolio_id': 21904049}, {'photo_id': 1348978790, 'portfolio_id': 21904049}, {'photo_id': 1348978784, 'portfolio_id': 21904049}, {'photo_id': 1348978780, 'portfolio_id': 21904049}] map_portfolio_id_photo_id: {21904049: [1348981086, 1348981084, 1348980839, 1348980835, 1348980830, 1348980761, 1348980715, 1348980713, 1348980711, 1348980658, 1348980656, 1348980444, 1348980424, 1348980372, 1348980323, 1348980297, 1348979880, 1348979855, 1348979831, 1348979797, 1348979782, 1348979689, 1348979683, 1348979677, 1348979668, 1348979499, 1348979454, 1348979421, 1348979418, 1348979142, 1348979116, 1348979096, 1348978952, 1348978921, 1348978912, 1348978909, 1348978795, 1348978790, 1348978784, 1348978780]} ##### 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.015158414840698242 #### 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 31 11:28: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 After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21904049) 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 : 21904049 get user id for portfolio 21904049 get sub ptf for main ptf 21904049, type 3726 and hashtags ['autre_refus', 'metal', 'cartonnette', 'Carton_gris', 'Teint_Dans_La_Masse', 'plastique', 'flou', 'environnement', 'Carton_brun', 'papier', 'kraft', 'mal_croppe'] 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`=21904049 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','metal','cartonnette','Carton_gris','Teint_Dans_La_Masse','plastique','flou','environnement','Carton_brun','papier','kraft','mal_croppe')) 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`=21904049 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','metal','cartonnette','Carton_gris','Teint_Dans_La_Masse','plastique','flou','environnement','Carton_brun','papier','kraft','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 21904049, 'sub_port_id': 21904106, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14411548, 'last_updated_at': datetime.datetime(2025, 3, 31, 11, 26, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 11, 26, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 11, 19, 28)}, 'kraft': {'main_port_id': 21904049, 'sub_port_id': 21904107, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14411549, 'last_updated_at': datetime.datetime(2025, 3, 31, 11, 26, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 11, 26, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 11, 19, 28)}, 'environnement': {'main_port_id': 21904049, 'sub_port_id': 21904108, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14411550, 'last_updated_at': datetime.datetime(2025, 3, 31, 11, 26, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 11, 26, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 11, 19, 28)}, 'Carton_brun': {'main_port_id': 21904049, 'sub_port_id': 21904109, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14411551, 'last_updated_at': datetime.datetime(2025, 3, 31, 11, 26, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 11, 26, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 11, 19, 28)}, 'metal': {'main_port_id': 21904049, 'sub_port_id': 21904110, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14411552, 'last_updated_at': datetime.datetime(2025, 3, 31, 11, 26, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 11, 26, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 11, 19, 28)}, 'cartonnette': {'main_port_id': 21904049, 'sub_port_id': 21904111, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14411553, 'last_updated_at': datetime.datetime(2025, 3, 31, 11, 26, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 11, 26, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 11, 19, 28)}, 'mal_croppe': {'main_port_id': 21904049, 'sub_port_id': 21904112, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14411554, 'last_updated_at': datetime.datetime(2025, 3, 31, 11, 26, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 11, 26, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 11, 19, 28)}, 'plastique': {'main_port_id': 21904049, 'sub_port_id': 21904113, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14411555, 'last_updated_at': datetime.datetime(2025, 3, 31, 11, 26, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 11, 26, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 11, 19, 28)}, 'flou': {'main_port_id': 21904049, 'sub_port_id': 21904114, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14411556, 'last_updated_at': datetime.datetime(2025, 3, 31, 11, 26, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 11, 26, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 11, 19, 28)}, 'autre_refus': {'main_port_id': 21904049, 'sub_port_id': 21904115, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14411557, 'last_updated_at': datetime.datetime(2025, 3, 31, 11, 26, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 11, 26, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 11, 19, 28)}, 'Carton_gris': {'main_port_id': 21904049, 'sub_port_id': 21904116, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14411558, 'last_updated_at': datetime.datetime(2025, 3, 31, 11, 26, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 11, 26, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 11, 19, 28)}, 'papier': {'main_port_id': 21904049, 'sub_port_id': 21904117, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14411559, 'last_updated_at': datetime.datetime(2025, 3, 31, 11, 26, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 11, 26, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 11, 19, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21904106 , 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=21904049 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 (21904106) result : ((1348979585,), (1348979586,), (1348979597,), (1348979598,), (1348979602,), (1348980014,), (1348980016,), (1348980021,), (1348980175,), (1348980678,), (1348980679,), (1348980680,), (1348980681,), (1348980682,), (1348980683,), (1348980704,), (1348980838,), (1348981075,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21904049) result : ((1348978780,), (1348978784,), (1348978790,), (1348978795,), (1348978909,), (1348978912,), (1348978921,), (1348978952,), (1348979096,), (1348979116,), (1348979142,), (1348979418,), (1348979421,), (1348979454,), (1348979499,), (1348979668,), (1348979677,), (1348979683,), (1348979689,), (1348979782,), (1348979797,), (1348979831,), (1348979855,), (1348979880,), (1348980297,), (1348980323,), (1348980372,), (1348980424,), (1348980444,), (1348980656,), (1348980658,), (1348980711,), (1348980713,), (1348980715,), (1348980761,), (1348980830,), (1348980835,), (1348980839,), (1348981084,), (1348981086,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21904107 , 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=21904049 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 (21904107) result : ((1348980708,), (1348980817,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21904049) result : ((1348978780,), (1348978784,), (1348978790,), (1348978795,), (1348978909,), (1348978912,), (1348978921,), (1348978952,), (1348979096,), (1348979116,), (1348979142,), (1348979418,), (1348979421,), (1348979454,), (1348979499,), (1348979668,), (1348979677,), (1348979683,), (1348979689,), (1348979782,), (1348979797,), (1348979831,), (1348979855,), (1348979880,), (1348980297,), (1348980323,), (1348980372,), (1348980424,), (1348980444,), (1348980656,), (1348980658,), (1348980711,), (1348980713,), (1348980715,), (1348980761,), (1348980830,), (1348980835,), (1348980839,), (1348981084,), (1348981086,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21904108 , 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=21904049 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 (21904108) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21904049) result : ((1348978780,), (1348978784,), (1348978790,), (1348978795,), (1348978909,), (1348978912,), (1348978921,), (1348978952,), (1348979096,), (1348979116,), (1348979142,), (1348979418,), (1348979421,), (1348979454,), (1348979499,), (1348979668,), (1348979677,), (1348979683,), (1348979689,), (1348979782,), (1348979797,), (1348979831,), (1348979855,), (1348979880,), (1348980297,), (1348980323,), (1348980372,), (1348980424,), (1348980444,), (1348980656,), (1348980658,), (1348980711,), (1348980713,), (1348980715,), (1348980761,), (1348980830,), (1348980835,), (1348980839,), (1348981084,), (1348981086,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21904109 , 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=21904049 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 (21904109) result : ((1348979600,), (1348980450,), (1348980451,), (1348980812,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21904049) result : ((1348978780,), (1348978784,), (1348978790,), (1348978795,), (1348978909,), (1348978912,), (1348978921,), (1348978952,), (1348979096,), (1348979116,), (1348979142,), (1348979418,), (1348979421,), (1348979454,), (1348979499,), (1348979668,), (1348979677,), (1348979683,), (1348979689,), (1348979782,), (1348979797,), (1348979831,), (1348979855,), (1348979880,), (1348980297,), (1348980323,), (1348980372,), (1348980424,), (1348980444,), (1348980656,), (1348980658,), (1348980711,), (1348980713,), (1348980715,), (1348980761,), (1348980830,), (1348980835,), (1348980839,), (1348981084,), (1348981086,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21904110 , 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=21904049 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 (21904110) result : ((1348981059,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21904049) result : ((1348978780,), (1348978784,), (1348978790,), (1348978795,), (1348978909,), (1348978912,), (1348978921,), (1348978952,), (1348979096,), (1348979116,), (1348979142,), (1348979418,), (1348979421,), (1348979454,), (1348979499,), (1348979668,), (1348979677,), (1348979683,), (1348979689,), (1348979782,), (1348979797,), (1348979831,), (1348979855,), (1348979880,), (1348980297,), (1348980323,), (1348980372,), (1348980424,), (1348980444,), (1348980656,), (1348980658,), (1348980711,), (1348980713,), (1348980715,), (1348980761,), (1348980830,), (1348980835,), (1348980839,), (1348981084,), (1348981086,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21904111 , 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=21904049 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 (21904111) result : ((1348979588,), (1348979589,), (1348979590,), (1348979591,), (1348979592,), (1348980687,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21904049) result : ((1348978780,), (1348978784,), (1348978790,), (1348978795,), (1348978909,), (1348978912,), (1348978921,), (1348978952,), (1348979096,), (1348979116,), (1348979142,), (1348979418,), (1348979421,), (1348979454,), (1348979499,), (1348979668,), (1348979677,), (1348979683,), (1348979689,), (1348979782,), (1348979797,), (1348979831,), (1348979855,), (1348979880,), (1348980297,), (1348980323,), (1348980372,), (1348980424,), (1348980444,), (1348980656,), (1348980658,), (1348980711,), (1348980713,), (1348980715,), (1348980761,), (1348980830,), (1348980835,), (1348980839,), (1348981084,), (1348981086,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21904112 , 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=21904049 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 (21904112) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21904049) result : ((1348978780,), (1348978784,), (1348978790,), (1348978795,), (1348978909,), (1348978912,), (1348978921,), (1348978952,), (1348979096,), (1348979116,), (1348979142,), (1348979418,), (1348979421,), (1348979454,), (1348979499,), (1348979668,), (1348979677,), (1348979683,), (1348979689,), (1348979782,), (1348979797,), (1348979831,), (1348979855,), (1348979880,), (1348980297,), (1348980323,), (1348980372,), (1348980424,), (1348980444,), (1348980656,), (1348980658,), (1348980711,), (1348980713,), (1348980715,), (1348980761,), (1348980830,), (1348980835,), (1348980839,), (1348981084,), (1348981086,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21904113 , 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=21904049 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 (21904113) result : ((1348979594,), (1348979595,), (1348980067,), (1348980068,), (1348980458,), (1348980459,), (1348980707,), (1348981057,), (1348981058,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21904049) result : ((1348978780,), (1348978784,), (1348978790,), (1348978795,), (1348978909,), (1348978912,), (1348978921,), (1348978952,), (1348979096,), (1348979116,), (1348979142,), (1348979418,), (1348979421,), (1348979454,), (1348979499,), (1348979668,), (1348979677,), (1348979683,), (1348979689,), (1348979782,), (1348979797,), (1348979831,), (1348979855,), (1348979880,), (1348980297,), (1348980323,), (1348980372,), (1348980424,), (1348980444,), (1348980656,), (1348980658,), (1348980711,), (1348980713,), (1348980715,), (1348980761,), (1348980830,), (1348980835,), (1348980839,), (1348981084,), (1348981086,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21904114 , 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=21904049 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 (21904114) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21904049) result : ((1348978780,), (1348978784,), (1348978790,), (1348978795,), (1348978909,), (1348978912,), (1348978921,), (1348978952,), (1348979096,), (1348979116,), (1348979142,), (1348979418,), (1348979421,), (1348979454,), (1348979499,), (1348979668,), (1348979677,), (1348979683,), (1348979689,), (1348979782,), (1348979797,), (1348979831,), (1348979855,), (1348979880,), (1348980297,), (1348980323,), (1348980372,), (1348980424,), (1348980444,), (1348980656,), (1348980658,), (1348980711,), (1348980713,), (1348980715,), (1348980761,), (1348980830,), (1348980835,), (1348980839,), (1348981084,), (1348981086,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21904115 , 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=21904049 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 (21904115) result : ((1348980442,), (1348980706,), (1348980809,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21904049) result : ((1348978780,), (1348978784,), (1348978790,), (1348978795,), (1348978909,), (1348978912,), (1348978921,), (1348978952,), (1348979096,), (1348979116,), (1348979142,), (1348979418,), (1348979421,), (1348979454,), (1348979499,), (1348979668,), (1348979677,), (1348979683,), (1348979689,), (1348979782,), (1348979797,), (1348979831,), (1348979855,), (1348979880,), (1348980297,), (1348980323,), (1348980372,), (1348980424,), (1348980444,), (1348980656,), (1348980658,), (1348980711,), (1348980713,), (1348980715,), (1348980761,), (1348980830,), (1348980835,), (1348980839,), (1348981084,), (1348981086,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21904116 , 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=21904049 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 (21904116) result : ((1348980049,), (1348980182,), (1348980447,), (1348980791,), (1348980811,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21904049) result : ((1348978780,), (1348978784,), (1348978790,), (1348978795,), (1348978909,), (1348978912,), (1348978921,), (1348978952,), (1348979096,), (1348979116,), (1348979142,), (1348979418,), (1348979421,), (1348979454,), (1348979499,), (1348979668,), (1348979677,), (1348979683,), (1348979689,), (1348979782,), (1348979797,), (1348979831,), (1348979855,), (1348979880,), (1348980297,), (1348980323,), (1348980372,), (1348980424,), (1348980444,), (1348980656,), (1348980658,), (1348980711,), (1348980713,), (1348980715,), (1348980761,), (1348980830,), (1348980835,), (1348980839,), (1348981084,), (1348981086,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21904117 , 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=21904049 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 (21904117) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21904049) result : ((1348978780,), (1348978784,), (1348978790,), (1348978795,), (1348978909,), (1348978912,), (1348978921,), (1348978952,), (1348979096,), (1348979116,), (1348979142,), (1348979418,), (1348979421,), (1348979454,), (1348979499,), (1348979668,), (1348979677,), (1348979683,), (1348979689,), (1348979782,), (1348979797,), (1348979831,), (1348979855,), (1348979880,), (1348980297,), (1348980323,), (1348980372,), (1348980424,), (1348980444,), (1348980656,), (1348980658,), (1348980711,), (1348980713,), (1348980715,), (1348980761,), (1348980830,), (1348980835,), (1348980839,), (1348981084,), (1348981086,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") 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`=21904049 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','metal','cartonnette','Carton_gris','Teint_Dans_La_Masse','plastique','flou','environnement','Carton_brun','papier','kraft','mal_croppe')) 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`=21904049 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','metal','cartonnette','Carton_gris','Teint_Dans_La_Masse','plastique','flou','environnement','Carton_brun','papier','kraft','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 21904049, 'sub_port_id': 21904118, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14411560, 'last_updated_at': datetime.datetime(2025, 3, 31, 11, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 11, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 11, 19, 30)}, 'kraft': {'main_port_id': 21904049, 'sub_port_id': 21904119, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14411561, 'last_updated_at': datetime.datetime(2025, 3, 31, 11, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 11, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 11, 19, 30)}, 'environnement': {'main_port_id': 21904049, 'sub_port_id': 21904120, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14411562, 'last_updated_at': datetime.datetime(2025, 3, 31, 11, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 11, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 11, 19, 30)}, 'Carton_brun': {'main_port_id': 21904049, 'sub_port_id': 21904121, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14411563, 'last_updated_at': datetime.datetime(2025, 3, 31, 11, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 11, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 11, 19, 30)}, 'metal': {'main_port_id': 21904049, 'sub_port_id': 21904122, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14411564, 'last_updated_at': datetime.datetime(2025, 3, 31, 11, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 11, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 11, 19, 30)}, 'cartonnette': {'main_port_id': 21904049, 'sub_port_id': 21904123, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14411565, 'last_updated_at': datetime.datetime(2025, 3, 31, 11, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 11, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 11, 19, 30)}, 'mal_croppe': {'main_port_id': 21904049, 'sub_port_id': 21904124, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14411566, 'last_updated_at': datetime.datetime(2025, 3, 31, 11, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 11, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 11, 19, 30)}, 'plastique': {'main_port_id': 21904049, 'sub_port_id': 21904125, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14411567, 'last_updated_at': datetime.datetime(2025, 3, 31, 11, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 11, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 11, 19, 30)}, 'flou': {'main_port_id': 21904049, 'sub_port_id': 21904126, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14411568, 'last_updated_at': datetime.datetime(2025, 3, 31, 11, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 11, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 11, 19, 30)}, 'autre_refus': {'main_port_id': 21904049, 'sub_port_id': 21904127, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14411569, 'last_updated_at': datetime.datetime(2025, 3, 31, 11, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 11, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 11, 19, 30)}, 'Carton_gris': {'main_port_id': 21904049, 'sub_port_id': 21904128, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14411570, 'last_updated_at': datetime.datetime(2025, 3, 31, 11, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 11, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 11, 19, 30)}, 'papier': {'main_port_id': 21904049, 'sub_port_id': 21904129, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14411571, 'last_updated_at': datetime.datetime(2025, 3, 31, 11, 26, 33), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 11, 26, 33), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 11, 19, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21904118,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21904106 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21904119,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21904107 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21904120,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21904108 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21904121,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21904109 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21904122,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21904110 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21904123,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21904111 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21904124,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21904112 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21904125,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21904113 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21904126,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21904114 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21904127,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21904115 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21904128,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21904116 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21904129,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21904117 lien utilise dans velours : https://www.fotonower.com/velours/21904118,21904119,21904120,21904121,21904122,21904123,21904124,21904125,21904126,21904127,21904128,21904129?tags=Teint_Dans_La_Masse,kraft,environnement,Carton_brun,metal,cartonnette,mal_croppe,plastique,flou,autre_refus,Carton_gris,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21904049]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1348981086, 1348981084] map_info['map_portfolio_photo'] : {21904049: [1348981086, 1348981084, 1348980839, 1348980835, 1348980830, 1348980761, 1348980715, 1348980713, 1348980711, 1348980658, 1348980656, 1348980444, 1348980424, 1348980372, 1348980323, 1348980297, 1348979880, 1348979855, 1348979831, 1348979797, 1348979782, 1348979689, 1348979683, 1348979677, 1348979668, 1348979499, 1348979454, 1348979421, 1348979418, 1348979142, 1348979116, 1348979096, 1348978952, 1348978921, 1348978912, 1348978909, 1348978795, 1348978790, 1348978784, 1348978780]} final : False mtd_id 4302 list_pids : [1348981086, 1348981084] Looping around the photos to save general results len do output : 1 /21904049. 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, '2708508') ('4302', '21904049', '1348981086', None, None, None, None, None, '2708508') ('4302', None, None, None, None, None, None, None, '2708508') ('4302', '21904049', '1348981084', None, None, None, None, None, '2708508') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 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, '21904049', "{'Teint_Dans_La_Masse': 21904106, 'kraft': 21904107, 'environnement': 21904108, 'Carton_brun': 21904109, 'metal': 21904110, 'cartonnette': 21904111, 'mal_croppe': 21904112, 'plastique': 21904113, 'flou': 21904114, 'autre_refus': 21904115, 'Carton_gris': 21904116, 'papier': 21904117}", None, None, None, None, '2708508'), ('4302', '21904049', '1348981086', None, None, None, None, None, '2708508'), ('4302', '21904049', '1348981084', None, None, None, None, None, '2708508')] time used for this insertion : 0.011801958084106445 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.3722834587097168 time spend to save output : 0.011966466903686523 total time spend for step 1 : 1.3842499256134033 step2:final Mon Mar 31 11:28:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21904049) 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 21904049 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1348978795,1348978790,1348978784,1348978780,1348978952,1348978921,1348978912,1348978909,1348979142,1348979116,1348979096,1348979499,1348979454,1348979421,1348979418,1348979689,1348979683,1348979677,1348979668,1348979880,1348979855,1348979831,1348979797,1348980444,1348979782,1348980424,1348980372,1348980323,1348980297,1348980658,1348980656,1348980715,1348980713,1348980711,1348980761,1348980839,1348980835,1348980830,1348981086,1348981084); 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([21904049]) Inside saveOutput : final : False verbose : True original output for save of step final : {1348981086: ('0.053862024121995956',), 1348981084: ('0.053862024121995956',)} new output for save of step final : {1348981086: ('0.053862024121995956',), 1348981084: ('0.053862024121995956',)} [1348981086, 1348981084] map_info['map_portfolio_photo'] : {21904049: [1348981086, 1348981084, 1348980839, 1348980835, 1348980830, 1348980761, 1348980715, 1348980713, 1348980711, 1348980658, 1348980656, 1348980444, 1348980424, 1348980372, 1348980323, 1348980297, 1348979880, 1348979855, 1348979831, 1348979797, 1348979782, 1348979689, 1348979683, 1348979677, 1348979668, 1348979499, 1348979454, 1348979421, 1348979418, 1348979142, 1348979116, 1348979096, 1348978952, 1348978921, 1348978912, 1348978909, 1348978795, 1348978790, 1348978784, 1348978780]} final : False mtd_id 4302 list_pids : [1348981086, 1348981084] Looping around the photos to save general results len do output : 2 /1348981086.Didn't retrieve data . /1348981084.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, '2708508') ('4302', '21904049', '1348981086', None, None, None, None, None, '2708508') ('4302', None, None, None, None, None, None, None, '2708508') ('4302', '21904049', '1348981084', None, None, None, None, None, '2708508') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 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', '21904049', '1348981086', '0.053862024121995956', None, None, None, None, '2708508'), ('4302', '21904049', '1348981084', '0.053862024121995956', None, None, None, None, '2708508')] time used for this insertion : 0.011790275573730469 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06572079658508301 time spend to save output : 0.01200246810913086 total time spend for step 2 : 0.07772326469421387 step3:velours_tree Mon Mar 31 11:28:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21904049: [{'Teint_Dans_La_Masse': 21904106, 'kraft': 21904107, 'environnement': 21904108, 'Carton_brun': 21904109, 'metal': 21904110, 'cartonnette': 21904111, 'mal_croppe': 21904112, 'plastique': 21904113, 'flou': 21904114, 'autre_refus': 21904115, 'Carton_gris': 21904116, 'papier': 21904117}]} input_args_next_step : {21904049: ()} output_args : {21904049: [{'Teint_Dans_La_Masse': 21904106, 'kraft': 21904107, 'environnement': 21904108, 'Carton_brun': 21904109, 'metal': 21904110, 'cartonnette': 21904111, 'mal_croppe': 21904112, 'plastique': 21904113, 'flou': 21904114, 'autre_refus': 21904115, 'Carton_gris': 21904116, 'papier': 21904117}]} args : 21904049 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': 21904106, 'kraft': 21904107, 'environnement': 21904108, 'Carton_brun': 21904109, 'metal': 21904110, 'cartonnette': 21904111, 'mal_croppe': 21904112, 'plastique': 21904113, 'flou': 21904114, 'autre_refus': 21904115, 'Carton_gris': 21904116, 'papier': 21904117},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21904049) 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([21904049]) 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.3112142086029053 time spend to save output : 4.887580871582031e-05 total time spend for step 3 : 0.3112630844116211 step4:send_mail_cod Mon Mar 31 11:28:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1348981086: ('0.053862024121995956',), 1348981084: ('0.053862024121995956',)} input_args_next_step : {1348981086: ()} output_args : {1348981086: ('0.053862024121995956',), 1348981084: ('0.053862024121995956',)} args : 1348981086 depend.output_id : 0 input_args_next_step : {1348981086: ('0.053862024121995956',), 1348981084: ()} output_args : {1348981086: ('0.053862024121995956',), 1348981084: ('0.053862024121995956',)} args : 1348981084 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 : {21904049: [{'Teint_Dans_La_Masse': 21904106, 'kraft': 21904107, 'environnement': 21904108, 'Carton_brun': 21904109, 'metal': 21904110, 'cartonnette': 21904111, 'mal_croppe': 21904112, 'plastique': 21904113, 'flou': 21904114, 'autre_refus': 21904115, 'Carton_gris': 21904116, 'papier': 21904117}]} input_args_next_step : {1348981086: ('0.053862024121995956',), 1348981084: ('0.053862024121995956',), 21904049: ()} output_args : {21904049: [{'Teint_Dans_La_Masse': 21904106, 'kraft': 21904107, 'environnement': 21904108, 'Carton_brun': 21904109, 'metal': 21904110, 'cartonnette': 21904111, 'mal_croppe': 21904112, 'plastique': 21904113, 'flou': 21904114, 'autre_refus': 21904115, 'Carton_gris': 21904116, 'papier': 21904117}]} args : 21904049 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 :3, first value : ('0.053862024121995956',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21904049) 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 (1348981086,1348981084) Found this number of photos: 2 ##### Call download_photos : nb_thread : 5 begin to download photo : 1348981084 begin to download photo : 1348981086 download finish for photo 1348981086 download finish for photo 1348981084 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 2 ; length of list_pids : 2 ; length of list_args : 2 results_Auto_P21904049_31-03-2025_11_28_59.pdf 21904107 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=21904107 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348980708: '1743413008_873024_1348979782_2ac18bdd39c6c6d1557bcd6b345a80ba_rle_crop_3740901221_0.png', 1348980817: '1743413130_3357905_1348980656_24bc39d59c869b59b181246be55151b1_rle_crop_3740902585_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/3a7ffe37b1f49abd96bcb356471b95fb_51026774.png change filename to text .imagette219041071743413339/ imagette219041071743413339/1743413130_3357905_1348980656_24bc39d59c869b59b181246be55151b1_rle_crop_3740902585_0.png.png imagette219041071743413339/1743413008_873024_1348979782_2ac18bdd39c6c6d1557bcd6b345a80ba_rle_crop_3740901221_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/ad3e674fef2f5dc4e3c7483d030645b7_12559185.png imagette219041071743413339 21904110 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=21904110 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348981059: '1743413232_3359012_1348980835_e99f97eab7366c14a2f5d74b4c999d6d_rle_crop_3740902896_0.png'} change filename to text .imagette219041101743413340/ imagette219041101743413340/1743413232_3359012_1348980835_e99f97eab7366c14a2f5d74b4c999d6d_rle_crop_3740902896_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/7b711b4b07ef0e93800ed5ad1297696c_52017749.png imagette219041101743413340 21904111 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=21904111 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348979588: '1743412752_3353990_1348978795_2a780e7ea63a3dbf7610e420f87adac6_rle_crop_3740899876_0.png', 1348979589: '1743412752_3353990_1348978790_3a9cf1a40aab843834542d9acfe392d5_rle_crop_3740899884_0.png', 1348979590: '1743412752_3353990_1348978784_5f03da341c38bf7178a93d334ec5d13f_rle_crop_3740899897_0.png', 1348979591: '1743412752_3353990_1348978780_e54923ac7feeca17293d39961fd6dcc6_rle_crop_3740899912_0.png', 1348979592: '1743412752_3353990_1348978780_e54923ac7feeca17293d39961fd6dcc6_rle_crop_3740899918_0.png', 1348980687: '1743412992_3356400_1348980372_e49c394fb9aa9b3141a63c38d2aa2761_rle_crop_3740901039_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/6b96269580d07e2c133bbf914dd92fc7_34717967.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/dc29b4532772fda34fcfddab081dfa25_70874071.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/5e007737c607a8b4f2074b7a54c91662_89160448.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/ae4e99feab73635b623e340a8f7cce0a_51501011.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/51c20a78519785c3042391cc1abd22f8_17292997.png change filename to text .imagette219041111743413340/ imagette219041111743413340/1743412752_3353990_1348978795_2a780e7ea63a3dbf7610e420f87adac6_rle_crop_3740899876_0.png.png imagette219041111743413340/1743412992_3356400_1348980372_e49c394fb9aa9b3141a63c38d2aa2761_rle_crop_3740901039_0.png.png imagette219041111743413340/1743412752_3353990_1348978790_3a9cf1a40aab843834542d9acfe392d5_rle_crop_3740899884_0.png.png imagette219041111743413340/1743412752_3353990_1348978784_5f03da341c38bf7178a93d334ec5d13f_rle_crop_3740899897_0.png.png imagette219041111743413340/1743412752_3353990_1348978780_e54923ac7feeca17293d39961fd6dcc6_rle_crop_3740899918_0.png.png imagette219041111743413340/1743412752_3353990_1348978780_e54923ac7feeca17293d39961fd6dcc6_rle_crop_3740899912_0.png.png imagette219041121743413340/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/6ecbb9c5f6bc6a4f8f5f09fe57f2acba_53555984.png imagette219041111743413340 21904112 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=21904112 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219041121743413340 21904113 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=21904113 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348979594: '1743412752_3353990_1348978784_5f03da341c38bf7178a93d334ec5d13f_rle_crop_3740899899_0.png', 1348979595: '1743412752_3353990_1348978780_e54923ac7feeca17293d39961fd6dcc6_rle_crop_3740899911_0.png', 1348980067: '1743412871_3355074_1348979677_5bfe81cea5f46d3d80c237181567457c_rle_crop_3740900359_0.png', 1348980068: '1743412871_3355074_1348979668_cbaa21419afc973bb03c5917e263523a_rle_crop_3740900367_0.png', 1348980458: '1743412910_3355587_1348979421_c72fde93afe8b8b9f9d4e8d93f5640ba_rle_crop_3740900707_0.png', 1348980459: '1743412910_3355587_1348979418_4bde3504c8e432a294f5478dc587e14c_rle_crop_3740900717_0.png', 1348980707: '1743413008_873024_1348979782_2ac18bdd39c6c6d1557bcd6b345a80ba_rle_crop_3740901218_0.png', 1348981057: '1743413232_3359012_1348980830_97cf65091c5a88b9f7d2aaa182f8a002_rle_crop_3740902906_0.png', 1348981058: '1743413232_3359012_1348980830_97cf65091c5a88b9f7d2aaa182f8a002_rle_crop_3740902915_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/1e2746dacba072cb0ca4407d784af410_89143065.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/6d68ba5cccb290bd5db099abedcc33ca_64424812.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/b1d5d275bac8afb8a072f6ab50b48457_63022144.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/19c8055cc48265ddbe5eefc3041210ef_79506321.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/db267a88834b8e3fe7fc5d8c61155037_79630481.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/27bf2961891538de3cccaa5ce2c55b48_63006409.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/45e0a7b3af5822325bd696b354acc41b_75724686.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/c4df97063aa5f5ab6d434683ceb90b9a_79037315.png change filename to text .imagette219041131743413340/ imagette219041131743413340/1743412910_3355587_1348979418_4bde3504c8e432a294f5478dc587e14c_rle_crop_3740900717_0.png.png imagette219041131743413340/1743412752_3353990_1348978780_e54923ac7feeca17293d39961fd6dcc6_rle_crop_3740899911_0.png.png imagette219041131743413340/1743413232_3359012_1348980830_97cf65091c5a88b9f7d2aaa182f8a002_rle_crop_3740902906_0.png.png imagette219041131743413340/1743412871_3355074_1348979677_5bfe81cea5f46d3d80c237181567457c_rle_crop_3740900359_0.png.png imagette219041131743413340/1743412910_3355587_1348979421_c72fde93afe8b8b9f9d4e8d93f5640ba_rle_crop_3740900707_0.png.png imagette219041131743413340/1743412752_3353990_1348978784_5f03da341c38bf7178a93d334ec5d13f_rle_crop_3740899899_0.png.png imagette219041131743413340/1743413232_3359012_1348980830_97cf65091c5a88b9f7d2aaa182f8a002_rle_crop_3740902915_0.png.png imagette219041131743413340/1743413008_873024_1348979782_2ac18bdd39c6c6d1557bcd6b345a80ba_rle_crop_3740901218_0.png.png imagette219041131743413340/1743412871_3355074_1348979668_cbaa21419afc973bb03c5917e263523a_rle_crop_3740900367_0.png.png imagette219041141743413341/ wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/2b6008f933682475fea0052c7009296f_31614580.png imagette219041131743413340 21904114 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=21904114 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219041141743413341 21904115 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=21904115 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348980442: '1743412910_3355587_1348979689_a06bac212849ec3403da67afad0bc209_rle_crop_3740900683_0.png', 1348980706: '1743413008_873024_1348979797_162cf1f268cce127e344ecde14685a1a_rle_crop_3740901210_0.png', 1348980809: '1743413130_3357905_1348980715_8dc641692e3624d859f4eb0e79ebdebf_rle_crop_3740902555_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/46010e79ce18d59c0016cf7dceeaf65f_98287408.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/e7fc773a2afdd99cc339a57fabf9db00_26180017.png change filename to text .imagette219041151743413341/ imagette219041151743413341/1743412910_3355587_1348979689_a06bac212849ec3403da67afad0bc209_rle_crop_3740900683_0.png.png imagette219041151743413341/1743413130_3357905_1348980715_8dc641692e3624d859f4eb0e79ebdebf_rle_crop_3740902555_0.png.png imagette219041151743413341/1743413008_873024_1348979797_162cf1f268cce127e344ecde14685a1a_rle_crop_3740901210_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/42daccefa9340209edf49aa2da61e19e_85975107.png imagette219041151743413341 21904106 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=21904106 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348980678: '1743412992_3356400_1348980424_4d7ddfaffb609144f971bc8051937898_rle_crop_3740901029_0.png', 1348981075: '1743413252_3359259_1348980761_1140a42d525145ee81cc02c3de85888f_rle_crop_3740902943_0.png', 1348980838: '1743413152_3358208_1348980658_c30a748275f5ba3bea44b5fe04de008a_rle_crop_3740902665_0.png', 1348980704: '1743413008_873024_1348979782_2ac18bdd39c6c6d1557bcd6b345a80ba_rle_crop_3740901223_0.png', 1348980683: '1743412992_3356400_1348980297_3d5934fabfbfe561334226bf095f3ca4_rle_crop_3740901061_0.png', 1348980682: '1743412992_3356400_1348980297_3d5934fabfbfe561334226bf095f3ca4_rle_crop_3740901062_0.png', 1348980681: '1743412992_3356400_1348980323_248338f65c41cfe9debb685cf89c38b2_rle_crop_3740901055_0.png', 1348980680: '1743412992_3356400_1348980424_4d7ddfaffb609144f971bc8051937898_rle_crop_3740901027_0.png', 1348980679: '1743412992_3356400_1348980424_4d7ddfaffb609144f971bc8051937898_rle_crop_3740901028_0.png', 1348979585: '1743412752_3353990_1348978795_2a780e7ea63a3dbf7610e420f87adac6_rle_crop_3740899878_0.png', 1348980175: '1743412892_3355345_1348979499_023d910fa8776af4ec369890b99b35a3_rle_crop_3740900516_0.png', 1348980021: '1743412871_3355074_1348979668_cbaa21419afc973bb03c5917e263523a_rle_crop_3740900369_0.png', 1348980016: '1743412871_3355074_1348979668_cbaa21419afc973bb03c5917e263523a_rle_crop_3740900371_0.png', 1348980014: '1743412871_3355074_1348979677_5bfe81cea5f46d3d80c237181567457c_rle_crop_3740900360_0.png', 1348979602: '1743412766_869306_1348979142_4a26545191cbb2526e2e7e1ac926c5f7_rle_crop_3740899945_0.png', 1348979598: '1743412768_635964_1348979096_9528bf444674871e0231a8f458712188_rle_crop_3740899956_0.png', 1348979597: '1743412768_635964_1348979116_f72ec972e6de4f793378ec26061f1fb0_rle_crop_3740899937_0.png', 1348979586: '1743412752_3353990_1348978790_3a9cf1a40aab843834542d9acfe392d5_rle_crop_3740899886_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/e64ef88a4cc373e7d26fdc091f20d0ba_88941334.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/d9fdfd19279a29bac6943df53e49dcda_87943951.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/fbd13681e3690bf65254ed24dc9263a8_30215267.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/1fde29ec9e2435672358a1b07b27be12_71054316.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/117bc52a90a6ab760dcf353e17219dd0_84567741.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/0e728d1ddb400ac58e27e1e924e2d534_77235258.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/a5e472d4f01db2f2a638296be30f49d4_88279606.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/160742ed69697a30aef23f4518ea90c7_88204185.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/ef65e17959b7d8f0668453a0fa947366_99681080.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/504cb8975b73934378b9c8b130b3f39f_78065961.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/c7d53edc9be54b93a2c215a28c78a8c1_91866581.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/49e5f7d6299b6df713f1f6656bd5519d_55046643.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/12937027e757c9d6e9b67009483cbd6c_85747441.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/93a7dd105b103c32d0a3e69b52c56917_78036748.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/0e394b7113d9e655feba13b4c7d61e8d_99243245.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/af38edc26b4bff370195d28105c940db_89008727.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/2401f76ba67db69de64c7ef0d8df32b6_24010277.png change filename to text .imagette219041061743413341/ imagette219041061743413341/1743412992_3356400_1348980297_3d5934fabfbfe561334226bf095f3ca4_rle_crop_3740901061_0.png.png imagette219041061743413341/1743412768_635964_1348979096_9528bf444674871e0231a8f458712188_rle_crop_3740899956_0.png.png imagette219041061743413341/1743412992_3356400_1348980424_4d7ddfaffb609144f971bc8051937898_rle_crop_3740901027_0.png.png imagette219041061743413341/1743413252_3359259_1348980761_1140a42d525145ee81cc02c3de85888f_rle_crop_3740902943_0.png.png imagette219041061743413341/1743412992_3356400_1348980424_4d7ddfaffb609144f971bc8051937898_rle_crop_3740901028_0.png.png imagette219041061743413341/1743412766_869306_1348979142_4a26545191cbb2526e2e7e1ac926c5f7_rle_crop_3740899945_0.png.png imagette219041061743413341/1743412992_3356400_1348980323_248338f65c41cfe9debb685cf89c38b2_rle_crop_3740901055_0.png.png imagette219041061743413341/1743412992_3356400_1348980297_3d5934fabfbfe561334226bf095f3ca4_rle_crop_3740901062_0.png.png imagette219041061743413341/1743412752_3353990_1348978790_3a9cf1a40aab843834542d9acfe392d5_rle_crop_3740899886_0.png.png imagette219041061743413341/1743413152_3358208_1348980658_c30a748275f5ba3bea44b5fe04de008a_rle_crop_3740902665_0.png.png imagette219041061743413341/1743412892_3355345_1348979499_023d910fa8776af4ec369890b99b35a3_rle_crop_3740900516_0.png.png imagette219041061743413341/1743412752_3353990_1348978795_2a780e7ea63a3dbf7610e420f87adac6_rle_crop_3740899878_0.png.png imagette219041061743413341/1743412871_3355074_1348979677_5bfe81cea5f46d3d80c237181567457c_rle_crop_3740900360_0.png.png imagette219041061743413341/1743412871_3355074_1348979668_cbaa21419afc973bb03c5917e263523a_rle_crop_3740900371_0.png.png imagette219041061743413341/1743413008_873024_1348979782_2ac18bdd39c6c6d1557bcd6b345a80ba_rle_crop_3740901223_0.png.png imagette219041061743413341/1743412768_635964_1348979116_f72ec972e6de4f793378ec26061f1fb0_rle_crop_3740899937_0.png.png imagette219041061743413341/1743412992_3356400_1348980424_4d7ddfaffb609144f971bc8051937898_rle_crop_3740901029_0.png.png imagette219041061743413341/1743412871_3355074_1348979668_cbaa21419afc973bb03c5917e263523a_rle_crop_3740900369_0.png.png wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/78cede04a29e54680b9118567f45f910_4637919.png imagette219041061743413341 21904109 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=21904109 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348979600: '1743412768_635964_1348979096_9528bf444674871e0231a8f458712188_rle_crop_3740899954_0.png', 1348980450: '1743412910_3355587_1348979421_c72fde93afe8b8b9f9d4e8d93f5640ba_rle_crop_3740900714_0.png', 1348980451: '1743412910_3355587_1348979421_c72fde93afe8b8b9f9d4e8d93f5640ba_rle_crop_3740900713_0.png', 1348980812: '1743413130_3357905_1348980656_24bc39d59c869b59b181246be55151b1_rle_crop_3740902589_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/7b509fec3fcce0616d4dbcc8fa70f658_66296555.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/cb912fa9c67b60c327ae2be41db85310_83327725.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/3d698d20cbc67f2a07479d124d24013b_81732810.png change filename to text .imagette219041091743413343/ imagette219041091743413343/1743412910_3355587_1348979421_c72fde93afe8b8b9f9d4e8d93f5640ba_rle_crop_3740900713_0.png.png imagette219041091743413343/1743412910_3355587_1348979421_c72fde93afe8b8b9f9d4e8d93f5640ba_rle_crop_3740900714_0.png.png imagette219041091743413343/1743413130_3357905_1348980656_24bc39d59c869b59b181246be55151b1_rle_crop_3740902589_0.png.png imagette219041091743413343/1743412768_635964_1348979096_9528bf444674871e0231a8f458712188_rle_crop_3740899954_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/cd13d5dae7b7ab5ce4f0649546c8fc0f_49824096.png imagette219041091743413343 21904116 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=21904116 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348980049: '1743412871_3355074_1348979683_e87c470fd3d684d081c1c364efc77ec9_rle_crop_3740900345_0.png', 1348980182: '1743412892_3355345_1348979499_023d910fa8776af4ec369890b99b35a3_rle_crop_3740900507_0.png', 1348980447: '1743412910_3355587_1348979418_4bde3504c8e432a294f5478dc587e14c_rle_crop_3740900722_0.png', 1348980791: '1743413112_3357714_1348980711_9777c118198e8a7fb56b9bc23b3b9f64_rle_crop_3740902387_0.png', 1348980811: '1743413130_3357905_1348980715_8dc641692e3624d859f4eb0e79ebdebf_rle_crop_3740902558_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/a8f71d3379d55ab2ea6c8163e2a4978e_49600460.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/d0332419fbb137c35210d720e8cf9730_79489828.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/e74e3a1087febdd2284999d4ea63bbf5_54138690.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/0ecdafa774b16ec18557113d4204cbd2_81886789.png change filename to text .imagette219041161743413343/ imagette219041161743413343/1743412910_3355587_1348979418_4bde3504c8e432a294f5478dc587e14c_rle_crop_3740900722_0.png.png imagette219041161743413343/1743412871_3355074_1348979683_e87c470fd3d684d081c1c364efc77ec9_rle_crop_3740900345_0.png.png imagette219041161743413343/1743413112_3357714_1348980711_9777c118198e8a7fb56b9bc23b3b9f64_rle_crop_3740902387_0.png.png imagette219041161743413343/1743413130_3357905_1348980715_8dc641692e3624d859f4eb0e79ebdebf_rle_crop_3740902558_0.png.png imagette219041161743413343/1743412892_3355345_1348979499_023d910fa8776af4ec369890b99b35a3_rle_crop_3740900507_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/90de8994ab438b90c063d6fd633108e6_89288453.png imagette219041161743413343 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21904049 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21904118,21904119,21904120,21904121,21904122,21904123,21904124,21904125,21904126,21904127,21904128,21904129?tags=Teint_Dans_La_Masse,kraft,environnement,Carton_brun,metal,cartonnette,mal_croppe,plastique,flou,autre_refus,Carton_gris,papier your option no_mail is active, we will not send the real mail to your client args[1348981086] : ('0.053862024121995956',) no score found for photo 1348981086 We are sending mail with results at report@fotonower.com args[1348981084] : ('0.053862024121995956',) no score found for photo 1348981084 We are sending mail with results at report@fotonower.com refus_total : 0.053862024121995956 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=21904049 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_P21904049_31-03-2025_11_28_59.pdf results_Auto_P21904049_31-03-2025_11_28_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21904049_31-03-2025_11_28_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','21904049','results_Auto_P21904049_31-03-2025_11_28_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21904049_31-03-2025_11_28_59.pdf','pdf','','0.21','0.053862024121995956') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21904049]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1348981086, 1348981084] map_info['map_portfolio_photo'] : {21904049: [1348981086, 1348981084, 1348980839, 1348980835, 1348980830, 1348980761, 1348980715, 1348980713, 1348980711, 1348980658, 1348980656, 1348980444, 1348980424, 1348980372, 1348980323, 1348980297, 1348979880, 1348979855, 1348979831, 1348979797, 1348979782, 1348979689, 1348979683, 1348979677, 1348979668, 1348979499, 1348979454, 1348979421, 1348979418, 1348979142, 1348979116, 1348979096, 1348978952, 1348978921, 1348978912, 1348978909, 1348978795, 1348978790, 1348978784, 1348978780]} final : False mtd_id 4302 list_pids : [1348981086, 1348981084] 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, '2708508') ('4302', '21904049', '1348981086', None, None, None, None, None, '2708508') ('4302', None, None, None, None, None, None, None, '2708508') ('4302', '21904049', '1348981084', None, None, None, None, None, '2708508') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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', '21904049', '1348981086', None, None, None, None, None, '2708508'), ('4302', '21904049', '1348981084', None, None, None, None, None, '2708508')] time used for this insertion : 0.012726783752441406 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.962913990020752 time spend to save output : 0.012884855270385742 total time spend for step 4 : 4.975798845291138 step5:split_time_score Mon Mar 31 11:29:04 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['21904049'] 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 : [('21904049',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21904049) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1348981086: {'path': 'temp/1743413339_2964990_1348981086_f3bb04c4026fdc7af6c7a1082dc4044f.jpg', 'extension': 'jpg'}, 1348981084: {'path': 'temp/1743413339_2964990_1348981084_e730871a8562707b854aaa84a596969f.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 = 21904049; (('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 = 21904049 group by h (('11', 40),) 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=21904049 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 (21904049) 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 (21904049) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 31032025 21904049 Nombre de photos uploadées : 40 / 23040 (0%) 31032025 21904049 Nombre de photos taguées (types de déchets): 0 / 40 (0%) 31032025 21904049 Nombre de photos taguées (volume) : 0 / 40 (0%) [{'photo_id': 1348978795, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/2a780e7ea63a3dbf7610e420f87adac6.jpg', 'username': None, 'uploaded_at': 1743412567, 'text': 'image_31032025_11_15_04_010153m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1348978790, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/3a9cf1a40aab843834542d9acfe392d5.jpg', 'username': None, 'uploaded_at': 1743412567, 'text': 'image_31032025_11_15_14_009125m0.jpg 2e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1348978784, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/5f03da341c38bf7178a93d334ec5d13f.jpg', 'username': None, 'uploaded_at': 1743412567, 'text': 'image_31032025_11_15_24_010140m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1348978780, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/e54923ac7feeca17293d39961fd6dcc6.jpg', 'username': None, 'uploaded_at': 1743412567, 'text': 'image_31032025_11_15_34_010135m0.jpg 4e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.4836273193359375e-06 ???????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0017745494842529297 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21904049, '2025-03-31' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1702716,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.025288820266723633 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= 1702716 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1702716, 'dashboard_run_id': 1710754, 'mtr_portfolio_id': 21901316, 'dashboard_result_id': 9753542, '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_P21901316_31-03-2025_10_49_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21901327, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21901328, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21901329, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21901330, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21901331, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21901332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21901333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21901334, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21901335, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21901336, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21901337, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21901338, 'pht': 3726}}"}, {'dashboat_entry_day': 1702716, 'dashboard_run_id': 1710754, 'mtr_portfolio_id': 21901611, 'dashboard_result_id': 9753543, '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_P21901611_31-03-2025_11_04_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21901673, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21901674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21901675, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21901676, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21901677, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21901678, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21901679, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21901680, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21901681, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21901682, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21901683, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21901684, 'pht': 3726}}"}, {'dashboat_entry_day': 1702716, 'dashboard_run_id': 1710754, 'mtr_portfolio_id': 21902723, 'dashboard_result_id': 9753544, '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_P21902723_31-03-2025_11_18_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21902792, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21902793, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21902794, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21902795, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21902796, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21902797, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21902798, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21902799, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21902800, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21902801, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21902802, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21902803, 'pht': 3726}}"}, {'dashboat_entry_day': 1702716, 'dashboard_run_id': 1710754, 'mtr_portfolio_id': 21904049, 'dashboard_result_id': 9753545, '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_P21904049_31-03-2025_11_26_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21904106, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21904107, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21904108, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21904109, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21904110, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21904111, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21904112, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21904113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21904114, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21904115, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21904116, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21904117, '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 = 21901316 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 21901316 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 21901316 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21901316 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21901316 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21901316 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21901316_31-03-2025_10_49_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21901316 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_P21901316_31-03-2025_10_49_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21901327, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21901328, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21901329, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21901330, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21901331, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21901332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21901333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21901334, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21901335, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21901336, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21901337, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21901338, 'pht': 3726}}" where mtr_portfolio_id = 21901316 and dashboard_run_id = 1710754 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 = 21901611 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': 2708196, 'mtr_portfolio_id': 21901611, 'created_at': datetime.datetime(2025, 3, 31, 11, 4, 57), 'result': '0.027437227852020955', 'result_long': None, 'result_double': None}] Qualite : 0.027437227852020955 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21901611 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21901611_31-03-2025_11_04_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21901611 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_P21901611_31-03-2025_11_04_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21901673, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21901674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21901675, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21901676, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21901677, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21901678, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21901679, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21901680, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21901681, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21901682, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21901683, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21901684, 'pht': 3726}}" where mtr_portfolio_id = 21901611 and dashboard_run_id = 1710754 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`=21901611 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9753543, 0.027437227852020955, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21901611_31-03-2025_11_04_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21901673, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21901674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21901675, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21901676, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21901677, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21901678, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21901679, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21901680, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21901681, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21901682, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21901683, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21901684, '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 = 21902723 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': 2708383, 'mtr_portfolio_id': 21902723, 'created_at': datetime.datetime(2025, 3, 31, 11, 18, 59), 'result': '0.05526830409655477', 'result_long': None, 'result_double': None}] Qualite : 0.05526830409655477 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21902723 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21902723_31-03-2025_11_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21902723 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_P21902723_31-03-2025_11_18_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21902792, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21902793, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21902794, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21902795, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21902796, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21902797, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21902798, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21902799, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21902800, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21902801, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21902802, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21902803, 'pht': 3726}}" where mtr_portfolio_id = 21902723 and dashboard_run_id = 1710754 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`=21902723 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9753544, 0.05526830409655477, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21902723_31-03-2025_11_18_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21902792, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21902793, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21902794, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21902795, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21902796, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21902797, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21902798, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21902799, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21902800, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21902801, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21902802, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21902803, '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 = 21904049 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': 2708508, 'mtr_portfolio_id': 21904049, 'created_at': datetime.datetime(2025, 3, 31, 11, 28, 59), 'result': '0.053862024121995956', 'result_long': None, 'result_double': None}] Qualite : 0.053862024121995956 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21904049 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21904049_31-03-2025_11_28_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21904049 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_P21904049_31-03-2025_11_28_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21904106, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21904107, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21904108, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21904109, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21904110, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21904111, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21904112, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21904113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21904114, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21904115, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21904116, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21904117, 'pht': 3726}}" where mtr_portfolio_id = 21904049 and dashboard_run_id = 1710754 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`=21904049 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9753545, 0.053862024121995956, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21904049_31-03-2025_11_28_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21904106, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21904107, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21904108, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21904109, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21904110, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21904111, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21904112, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21904113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21904114, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21904115, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21904116, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21904117, '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 (21901316,21901611,21902723,21904049) result : ((1348965557,), (1348965561,), (1348965566,), (1348965613,), (1348965616,), (1348965618,), (1348965650,), (1348965653,), (1348965656,), (1348965659,), (1348965662,), (1348965696,), (1348965697,), (1348965699,), (1348965701,), (1348965704,), (1348965707,), (1348965742,), (1348965743,), (1348965746,), (1348965784,), (1348965785,), (1348965787,), (1348965821,), (1348965822,), (1348965825,), (1348965828,), (1348965861,), (1348965863,), (1348965868,), (1348965871,), (1348965877,), (1348965912,), (1348965916,), (1348965918,), (1348965953,), (1348965955,), (1348965959,), (1348965962,), (1348965965,), (1348965971,), (1348966008,), (1348966010,), (1348966013,), (1348966015,), (1348966020,), (1348966025,), (1348966055,), (1348966058,), (1348966061,), (1348966064,), (1348966098,), (1348966100,), (1348966103,), (1348966106,), (1348966110,), (1348966149,), (1348966151,), (1348966155,), (1348966158,), (1348966161,), (1348966191,), (1348966193,), (1348966196,), (1348966244,), (1348966239,), (1348966282,), (1348966429,), (1348966473,), (1348966476,), (1348966479,), (1348966480,), (1348966485,), (1348966488,), (1348966550,), (1348966553,), (1348966556,), (1348966585,), (1348966746,), (1348966749,), (1348966752,), (1348966816,), (1348966818,), (1348966834,), (1348966930,), (1348966934,), (1348966950,), (1348966955,), (1348966960,), (1348967035,), (1348967038,), (1348967041,), (1348967114,), (1348967142,), (1348967170,), (1348967200,), (1348967228,), (1348967458,), (1348967459,), (1348967479,), (1348967507,), (1348967537,), (1348967555,), (1348968639,), (1348968736,), (1348968833,), (1348968922,), (1348969263,), (1348969351,), (1348969411,), (1348969472,), (1348969549,), (1348969966,), (1348969781,), (1348969809,), (1348969845,), (1348969873,), (1348969920,), (1348971090,), (1348971177,), (1348971258,), (1348971336,), (1348971400,), (1348972166,), (1348972200,), (1348972274,), (1348972352,), (1348972759,), (1348972762,), (1348972767,), (1348972772,), (1348972777,), (1348972850,), (1348972880,), (1348972911,), (1348972948,), (1348972990,), (1348973383,), (1348973417,), (1348973457,), (1348974155,), (1348974250,), (1348974745,), (1348974800,), (1348974847,), (1348974893,), (1348974936,), (1348975325,), (1348975348,), (1348975368,), (1348975396,), (1348975425,), (1348975633,), (1348975644,), (1348975670,), (1348975707,), (1348975978,), (1348976018,), (1348976068,), (1348976114,), (1348976146,), (1348977622,), (1348977707,), (1348977711,), (1348977718,), (1348977880,), (1348977889,), (1348977894,), (1348977899,), (1348978312,), (1348978366,), (1348978553,), (1348978563,), (1348978704,), (1348978708,), (1348978713,), (1348978719,), (1348978726,), (1348978730,), (1348978825,), (1348978780,), (1348978784,), (1348978790,), (1348978795,), (1348978909,), (1348978912,), (1348978921,), (1348978952,), (1348979096,), (1348979116,), (1348979142,), (1348979418,), (1348979421,), (1348979454,), (1348979499,), (1348979668,), (1348979677,), (1348979683,), (1348979689,), (1348979782,), (1348979797,), (1348979831,), (1348979855,), (1348979880,), (1348980297,), (1348980323,), (1348980372,), (1348980424,), (1348980444,), (1348980656,), (1348980658,), (1348980711,), (1348980713,), (1348980715,), (1348980761,), (1348980830,), (1348980835,), (1348980839,), (1348981084,), (1348981086,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'31032025': {'nb_upload': 40, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21904049]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1348981086, 1348981084] map_info['map_portfolio_photo'] : {21904049: [1348981086, 1348981084, 1348980839, 1348980835, 1348980830, 1348980761, 1348980715, 1348980713, 1348980711, 1348980658, 1348980656, 1348980444, 1348980424, 1348980372, 1348980323, 1348980297, 1348979880, 1348979855, 1348979831, 1348979797, 1348979782, 1348979689, 1348979683, 1348979677, 1348979668, 1348979499, 1348979454, 1348979421, 1348979418, 1348979142, 1348979116, 1348979096, 1348978952, 1348978921, 1348978912, 1348978909, 1348978795, 1348978790, 1348978784, 1348978780]} final : True mtd_id 4302 list_pids : [1348981086, 1348981084] Looping around the photos to save general results len do output : 1 /21904049Didn'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, '2708508') ('4302', '21904049', '1348981086', None, None, None, None, None, '2708508') ('4302', None, None, None, None, None, None, None, '2708508') ('4302', '21904049', '1348981084', None, None, None, None, None, '2708508') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 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, '21904049', 'None', None, None, None, None, '2708508'), ('4302', '21904049', '1348981086', None, None, None, None, None, '2708508'), ('4302', '21904049', '1348981084', None, None, None, None, None, '2708508')] time used for this insertion : 0.012115716934204102 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3168046474456787 time spend to save output : 0.012336254119873047 total time spend for step 5 : 0.32914090156555176 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 (2708508) 2.00user 2.26system 0:10.16elapsed 42%CPU (0avgtext+0avgdata 157684maxresident)k 184inputs+9728outputs (1major+63558minor)pagefaults 0swaps