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 : 2308093 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 (2758883) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2758883) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22396625 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2758883'] with mtr_portfolio_ids : ['22396625'] and first list_photo_ids : [] new path : /proc/2308093/ Name: python3 Umask: 0002 State: R (running) Tgid: 2308093 Ngid: 0 Pid: 2308093 PPid: 2308092 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2308093 NSpid: 2308093 NSpgid: 2303695 NSsid: 2303695 VmPeak: 1106936 kB VmSize: 1106936 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97864 kB VmRSS: 97864 kB RssAnon: 59804 kB RssFile: 38060 kB RssShmem: 0 kB VmData: 865684 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 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: 72 nonvoluntary_ctxt_switches: 149 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2308093', 'Ngid': '0', 'Pid': '2308093', 'PPid': '2308092', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2308093', 'NSpid': '2308093', 'NSpgid': '2303695', 'NSsid': '2303695', 'VmPeak': '1106936 kB', 'VmSize': '1106936 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97864 kB', 'VmRSS': '97864 kB', 'RssAnon': '59804 kB', 'RssFile': '38060 kB', 'RssShmem': '0 kB', 'VmData': '865684 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 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': '72', 'nonvoluntary_ctxt_switches': '149'} ('datou_batch_current', '2308093', '1106936', '0', '1106936', '865684', '97864', b'', 'marlene', '2758883') 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 (22396625) 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 (2758883 ) ) 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 (22396625) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1353451999, 'portfolio_id': 22396625}, {'photo_id': 1353451996, 'portfolio_id': 22396625}, {'photo_id': 1353451994, 'portfolio_id': 22396625}, {'photo_id': 1353451991, 'portfolio_id': 22396625}, {'photo_id': 1353451958, 'portfolio_id': 22396625}, {'photo_id': 1353451953, 'portfolio_id': 22396625}, {'photo_id': 1353451938, 'portfolio_id': 22396625}, {'photo_id': 1353451930, 'portfolio_id': 22396625}, {'photo_id': 1353451927, 'portfolio_id': 22396625}, {'photo_id': 1353451924, 'portfolio_id': 22396625}, {'photo_id': 1353451883, 'portfolio_id': 22396625}, {'photo_id': 1353451877, 'portfolio_id': 22396625}, {'photo_id': 1353451875, 'portfolio_id': 22396625}, {'photo_id': 1353451870, 'portfolio_id': 22396625}, {'photo_id': 1353451866, 'portfolio_id': 22396625}, {'photo_id': 1353451860, 'portfolio_id': 22396625}, {'photo_id': 1353451830, 'portfolio_id': 22396625}, {'photo_id': 1353451826, 'portfolio_id': 22396625}, {'photo_id': 1353451823, 'portfolio_id': 22396625}, {'photo_id': 1353451817, 'portfolio_id': 22396625}, {'photo_id': 1353451799, 'portfolio_id': 22396625}, {'photo_id': 1353451787, 'portfolio_id': 22396625}, {'photo_id': 1353451785, 'portfolio_id': 22396625}, {'photo_id': 1353451782, 'portfolio_id': 22396625}, {'photo_id': 1353451779, 'portfolio_id': 22396625}, {'photo_id': 1353451777, 'portfolio_id': 22396625}, {'photo_id': 1353451741, 'portfolio_id': 22396625}, {'photo_id': 1353451740, 'portfolio_id': 22396625}, {'photo_id': 1353451738, 'portfolio_id': 22396625}] map_portfolio_id_photo_id: {22396625: [1353451999, 1353451996, 1353451994, 1353451991, 1353451958, 1353451953, 1353451938, 1353451930, 1353451927, 1353451924, 1353451883, 1353451877, 1353451875, 1353451870, 1353451866, 1353451860, 1353451830, 1353451826, 1353451823, 1353451817, 1353451799, 1353451787, 1353451785, 1353451782, 1353451779, 1353451777, 1353451741, 1353451740, 1353451738]} ##### 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.015032291412353516 #### 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 Thu Apr 24 20:22: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 (22396625) 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 : 22396625 get user id for portfolio 22396625 get sub ptf for main ptf 22396625, type 3726 and hashtags ['plastique', 'papier', 'environnement', 'kraft', 'Carton_gris', 'mal_croppe', 'metal', 'autre_refus', 'Teint_Dans_La_Masse', 'Carton_brun', 'cartonnette', 'flou'] 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`=22396625 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','papier','environnement','kraft','Carton_gris','mal_croppe','metal','autre_refus','Teint_Dans_La_Masse','Carton_brun','cartonnette','flou')) 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`=22396625 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','papier','environnement','kraft','Carton_gris','mal_croppe','metal','autre_refus','Teint_Dans_La_Masse','Carton_brun','cartonnette','flou')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 22396625, 'sub_port_id': 22396689, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14846404, 'last_updated_at': datetime.datetime(2025, 4, 24, 20, 21), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 20, 21), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 20, 19, 27)}, 'Carton_brun': {'main_port_id': 22396625, 'sub_port_id': 22396690, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14846405, 'last_updated_at': datetime.datetime(2025, 4, 24, 20, 21), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 20, 21), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 20, 19, 27)}, 'mal_croppe': {'main_port_id': 22396625, 'sub_port_id': 22396691, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14846406, 'last_updated_at': datetime.datetime(2025, 4, 24, 20, 21), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 20, 21), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 20, 19, 27)}, 'environnement': {'main_port_id': 22396625, 'sub_port_id': 22396692, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14846407, 'last_updated_at': datetime.datetime(2025, 4, 24, 20, 21), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 20, 21), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 20, 19, 27)}, 'flou': {'main_port_id': 22396625, 'sub_port_id': 22396693, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14846408, 'last_updated_at': datetime.datetime(2025, 4, 24, 20, 21), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 20, 21), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 20, 19, 27)}, 'cartonnette': {'main_port_id': 22396625, 'sub_port_id': 22396694, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14846409, 'last_updated_at': datetime.datetime(2025, 4, 24, 20, 21), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 20, 21), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 20, 19, 27)}, 'Carton_gris': {'main_port_id': 22396625, 'sub_port_id': 22396695, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14846410, 'last_updated_at': datetime.datetime(2025, 4, 24, 20, 21), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 20, 21), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 20, 19, 27)}, 'kraft': {'main_port_id': 22396625, 'sub_port_id': 22396696, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14846411, 'last_updated_at': datetime.datetime(2025, 4, 24, 20, 21), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 20, 21), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 20, 19, 27)}, 'papier': {'main_port_id': 22396625, 'sub_port_id': 22396697, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14846412, 'last_updated_at': datetime.datetime(2025, 4, 24, 20, 21), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 20, 21), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 20, 19, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 22396625, 'sub_port_id': 22396698, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14846413, 'last_updated_at': datetime.datetime(2025, 4, 24, 20, 21), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 20, 21), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 20, 19, 27)}, 'metal': {'main_port_id': 22396625, 'sub_port_id': 22396699, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14846414, 'last_updated_at': datetime.datetime(2025, 4, 24, 20, 21), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 20, 21), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 20, 19, 27)}, 'plastique': {'main_port_id': 22396625, 'sub_port_id': 22396700, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14846415, 'last_updated_at': datetime.datetime(2025, 4, 24, 20, 21), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 20, 21), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 20, 19, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22396689 , 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=22396625 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 (22396689) result : ((1353452283,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22396625) result : ((1353451738,), (1353451740,), (1353451741,), (1353451777,), (1353451779,), (1353451782,), (1353451785,), (1353451787,), (1353451799,), (1353451817,), (1353451823,), (1353451826,), (1353451830,), (1353451860,), (1353451866,), (1353451870,), (1353451875,), (1353451877,), (1353451883,), (1353451924,), (1353451927,), (1353451930,), (1353451938,), (1353451953,), (1353451958,), (1353451991,), (1353451994,), (1353451996,), (1353451999,)) 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 22396690 , 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=22396625 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 (22396690) result : ((1353452314,), (1353452316,), (1353452504,), (1353452506,), (1353452507,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22396625) result : ((1353451738,), (1353451740,), (1353451741,), (1353451777,), (1353451779,), (1353451782,), (1353451785,), (1353451787,), (1353451799,), (1353451817,), (1353451823,), (1353451826,), (1353451830,), (1353451860,), (1353451866,), (1353451870,), (1353451875,), (1353451877,), (1353451883,), (1353451924,), (1353451927,), (1353451930,), (1353451938,), (1353451953,), (1353451958,), (1353451991,), (1353451994,), (1353451996,), (1353451999,)) 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 22396691 , 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=22396625 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 (22396691) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22396625) result : ((1353451738,), (1353451740,), (1353451741,), (1353451777,), (1353451779,), (1353451782,), (1353451785,), (1353451787,), (1353451799,), (1353451817,), (1353451823,), (1353451826,), (1353451830,), (1353451860,), (1353451866,), (1353451870,), (1353451875,), (1353451877,), (1353451883,), (1353451924,), (1353451927,), (1353451930,), (1353451938,), (1353451953,), (1353451958,), (1353451991,), (1353451994,), (1353451996,), (1353451999,)) 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 22396692 , 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=22396625 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 (22396692) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22396625) result : ((1353451738,), (1353451740,), (1353451741,), (1353451777,), (1353451779,), (1353451782,), (1353451785,), (1353451787,), (1353451799,), (1353451817,), (1353451823,), (1353451826,), (1353451830,), (1353451860,), (1353451866,), (1353451870,), (1353451875,), (1353451877,), (1353451883,), (1353451924,), (1353451927,), (1353451930,), (1353451938,), (1353451953,), (1353451958,), (1353451991,), (1353451994,), (1353451996,), (1353451999,)) 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 22396693 , 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=22396625 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 (22396693) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22396625) result : ((1353451738,), (1353451740,), (1353451741,), (1353451777,), (1353451779,), (1353451782,), (1353451785,), (1353451787,), (1353451799,), (1353451817,), (1353451823,), (1353451826,), (1353451830,), (1353451860,), (1353451866,), (1353451870,), (1353451875,), (1353451877,), (1353451883,), (1353451924,), (1353451927,), (1353451930,), (1353451938,), (1353451953,), (1353451958,), (1353451991,), (1353451994,), (1353451996,), (1353451999,)) 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 22396694 , 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=22396625 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 (22396694) result : ((1353451976,), (1353451977,), (1353452300,), (1353452303,), (1353452305,), (1353452486,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22396625) result : ((1353451738,), (1353451740,), (1353451741,), (1353451777,), (1353451779,), (1353451782,), (1353451785,), (1353451787,), (1353451799,), (1353451817,), (1353451823,), (1353451826,), (1353451830,), (1353451860,), (1353451866,), (1353451870,), (1353451875,), (1353451877,), (1353451883,), (1353451924,), (1353451927,), (1353451930,), (1353451938,), (1353451953,), (1353451958,), (1353451991,), (1353451994,), (1353451996,), (1353451999,)) 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 22396695 , 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=22396625 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 (22396695) result : ((1353452290,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22396625) result : ((1353451738,), (1353451740,), (1353451741,), (1353451777,), (1353451779,), (1353451782,), (1353451785,), (1353451787,), (1353451799,), (1353451817,), (1353451823,), (1353451826,), (1353451830,), (1353451860,), (1353451866,), (1353451870,), (1353451875,), (1353451877,), (1353451883,), (1353451924,), (1353451927,), (1353451930,), (1353451938,), (1353451953,), (1353451958,), (1353451991,), (1353451994,), (1353451996,), (1353451999,)) 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 22396696 , 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=22396625 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 (22396696) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22396625) result : ((1353451738,), (1353451740,), (1353451741,), (1353451777,), (1353451779,), (1353451782,), (1353451785,), (1353451787,), (1353451799,), (1353451817,), (1353451823,), (1353451826,), (1353451830,), (1353451860,), (1353451866,), (1353451870,), (1353451875,), (1353451877,), (1353451883,), (1353451924,), (1353451927,), (1353451930,), (1353451938,), (1353451953,), (1353451958,), (1353451991,), (1353451994,), (1353451996,), (1353451999,)) 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 22396697 , 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=22396625 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 (22396697) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22396625) result : ((1353451738,), (1353451740,), (1353451741,), (1353451777,), (1353451779,), (1353451782,), (1353451785,), (1353451787,), (1353451799,), (1353451817,), (1353451823,), (1353451826,), (1353451830,), (1353451860,), (1353451866,), (1353451870,), (1353451875,), (1353451877,), (1353451883,), (1353451924,), (1353451927,), (1353451930,), (1353451938,), (1353451953,), (1353451958,), (1353451991,), (1353451994,), (1353451996,), (1353451999,)) 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 22396698 , 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=22396625 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 (22396698) result : ((1353451971,), (1353451972,), (1353451973,), (1353452266,), (1353452268,), (1353452270,), (1353452273,), (1353452275,), (1353452277,), (1353452482,), (1353452483,), (1353452484,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22396625) result : ((1353451738,), (1353451740,), (1353451741,), (1353451777,), (1353451779,), (1353451782,), (1353451785,), (1353451787,), (1353451799,), (1353451817,), (1353451823,), (1353451826,), (1353451830,), (1353451860,), (1353451866,), (1353451870,), (1353451875,), (1353451877,), (1353451883,), (1353451924,), (1353451927,), (1353451930,), (1353451938,), (1353451953,), (1353451958,), (1353451991,), (1353451994,), (1353451996,), (1353451999,)) 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 22396699 , 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=22396625 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 (22396699) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22396625) result : ((1353451738,), (1353451740,), (1353451741,), (1353451777,), (1353451779,), (1353451782,), (1353451785,), (1353451787,), (1353451799,), (1353451817,), (1353451823,), (1353451826,), (1353451830,), (1353451860,), (1353451866,), (1353451870,), (1353451875,), (1353451877,), (1353451883,), (1353451924,), (1353451927,), (1353451930,), (1353451938,), (1353451953,), (1353451958,), (1353451991,), (1353451994,), (1353451996,), (1353451999,)) 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 22396700 , 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=22396625 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 (22396700) result : ((1353452326,), (1353452328,), (1353452330,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22396625) result : ((1353451738,), (1353451740,), (1353451741,), (1353451777,), (1353451779,), (1353451782,), (1353451785,), (1353451787,), (1353451799,), (1353451817,), (1353451823,), (1353451826,), (1353451830,), (1353451860,), (1353451866,), (1353451870,), (1353451875,), (1353451877,), (1353451883,), (1353451924,), (1353451927,), (1353451930,), (1353451938,), (1353451953,), (1353451958,), (1353451991,), (1353451994,), (1353451996,), (1353451999,)) 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`=22396625 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','papier','environnement','kraft','Carton_gris','mal_croppe','metal','autre_refus','Teint_Dans_La_Masse','Carton_brun','cartonnette','flou')) 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`=22396625 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','papier','environnement','kraft','Carton_gris','mal_croppe','metal','autre_refus','Teint_Dans_La_Masse','Carton_brun','cartonnette','flou')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 22396625, 'sub_port_id': 22396703, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14846416, 'last_updated_at': datetime.datetime(2025, 4, 24, 20, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 20, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 20, 19, 29)}, 'Carton_brun': {'main_port_id': 22396625, 'sub_port_id': 22396704, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14846417, 'last_updated_at': datetime.datetime(2025, 4, 24, 20, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 20, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 20, 19, 29)}, 'mal_croppe': {'main_port_id': 22396625, 'sub_port_id': 22396705, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14846418, 'last_updated_at': datetime.datetime(2025, 4, 24, 20, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 20, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 20, 19, 29)}, 'environnement': {'main_port_id': 22396625, 'sub_port_id': 22396706, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14846419, 'last_updated_at': datetime.datetime(2025, 4, 24, 20, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 20, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 20, 19, 29)}, 'flou': {'main_port_id': 22396625, 'sub_port_id': 22396707, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14846420, 'last_updated_at': datetime.datetime(2025, 4, 24, 20, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 20, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 20, 19, 29)}, 'cartonnette': {'main_port_id': 22396625, 'sub_port_id': 22396708, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14846421, 'last_updated_at': datetime.datetime(2025, 4, 24, 20, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 20, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 20, 19, 29)}, 'Carton_gris': {'main_port_id': 22396625, 'sub_port_id': 22396709, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14846422, 'last_updated_at': datetime.datetime(2025, 4, 24, 20, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 20, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 20, 19, 29)}, 'kraft': {'main_port_id': 22396625, 'sub_port_id': 22396710, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14846423, 'last_updated_at': datetime.datetime(2025, 4, 24, 20, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 20, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 20, 19, 29)}, 'papier': {'main_port_id': 22396625, 'sub_port_id': 22396711, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14846424, 'last_updated_at': datetime.datetime(2025, 4, 24, 20, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 20, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 20, 19, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 22396625, 'sub_port_id': 22396712, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14846425, 'last_updated_at': datetime.datetime(2025, 4, 24, 20, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 20, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 20, 19, 29)}, 'metal': {'main_port_id': 22396625, 'sub_port_id': 22396713, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14846426, 'last_updated_at': datetime.datetime(2025, 4, 24, 20, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 20, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 20, 19, 29)}, 'plastique': {'main_port_id': 22396625, 'sub_port_id': 22396714, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14846427, 'last_updated_at': datetime.datetime(2025, 4, 24, 20, 21), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 20, 21), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 20, 19, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22396703,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22396689 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22396704,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22396690 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22396705,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22396691 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22396706,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22396692 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22396707,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22396693 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22396708,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22396694 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22396709,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22396695 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22396710,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22396696 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22396711,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22396697 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22396712,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22396698 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22396713,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22396699 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22396714,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22396700 lien utilise dans velours : https://www.fotonower.com/velours/22396703,22396704,22396705,22396706,22396707,22396708,22396709,22396710,22396711,22396712,22396713,22396714?tags=autre_refus,Carton_brun,mal_croppe,environnement,flou,cartonnette,Carton_gris,kraft,papier,Teint_Dans_La_Masse,metal,plastique After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22396625]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1353451999, 1353451996, 1353451994, 1353451991, 1353451958, 1353451953, 1353451938, 1353451930, 1353451927, 1353451924] map_info['map_portfolio_photo'] : {22396625: [1353451999, 1353451996, 1353451994, 1353451991, 1353451958, 1353451953, 1353451938, 1353451930, 1353451927, 1353451924, 1353451883, 1353451877, 1353451875, 1353451870, 1353451866, 1353451860, 1353451830, 1353451826, 1353451823, 1353451817, 1353451799, 1353451787, 1353451785, 1353451782, 1353451779, 1353451777, 1353451741, 1353451740, 1353451738]} final : False mtd_id 4302 list_pids : [1353451999, 1353451996, 1353451994, 1353451991, 1353451958, 1353451953, 1353451938, 1353451930, 1353451927, 1353451924] Looping around the photos to save general results len do output : 1 /22396625. 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, '2758883') ('4302', '22396625', '1353451999', None, None, None, None, None, '2758883') ('4302', None, None, None, None, None, None, None, '2758883') ('4302', '22396625', '1353451996', None, None, None, None, None, '2758883') ('4302', None, None, None, None, None, None, None, '2758883') ('4302', '22396625', '1353451994', None, None, None, None, None, '2758883') ('4302', None, None, None, None, None, None, None, '2758883') ('4302', '22396625', '1353451991', None, None, None, None, None, '2758883') ('4302', None, None, None, None, None, None, None, '2758883') ('4302', '22396625', '1353451958', None, None, None, None, None, '2758883') ('4302', None, None, None, None, None, None, None, '2758883') ('4302', '22396625', '1353451953', None, None, None, None, None, '2758883') ('4302', None, None, None, None, None, None, None, '2758883') ('4302', '22396625', '1353451938', None, None, None, None, None, '2758883') ('4302', None, None, None, None, None, None, None, '2758883') ('4302', '22396625', '1353451930', None, None, None, None, None, '2758883') ('4302', None, None, None, None, None, None, None, '2758883') ('4302', '22396625', '1353451927', None, None, None, None, None, '2758883') ('4302', None, None, None, None, None, None, None, '2758883') ('4302', '22396625', '1353451924', None, None, None, None, None, '2758883') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22396625', "{'autre_refus': 22396689, 'Carton_brun': 22396690, 'mal_croppe': 22396691, 'environnement': 22396692, 'flou': 22396693, 'cartonnette': 22396694, 'Carton_gris': 22396695, 'kraft': 22396696, 'papier': 22396697, 'Teint_Dans_La_Masse': 22396698, 'metal': 22396699, 'plastique': 22396700}", None, None, None, None, '2758883'), ('4302', '22396625', '1353451999', None, None, None, None, None, '2758883'), ('4302', '22396625', '1353451996', None, None, None, None, None, '2758883'), ('4302', '22396625', '1353451994', None, None, None, None, None, '2758883'), ('4302', '22396625', '1353451991', None, None, None, None, None, '2758883'), ('4302', '22396625', '1353451958', None, None, None, None, None, '2758883'), ('4302', '22396625', '1353451953', None, None, None, None, None, '2758883'), ('4302', '22396625', '1353451938', None, None, None, None, None, '2758883'), ('4302', '22396625', '1353451930', None, None, None, None, None, '2758883'), ('4302', '22396625', '1353451927', None, None, None, None, None, '2758883'), ('4302', '22396625', '1353451924', None, None, None, None, None, '2758883')] time used for this insertion : 0.014543533325195312 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4733800888061523 time spend to save output : 0.014901399612426758 total time spend for step 1 : 1.488281488418579 step2:final Thu Apr 24 20:23:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (22396625) 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 22396625 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1353451741,1353451740,1353451738,1353451799,1353451787,1353451785,1353451782,1353451779,1353451777,1353451830,1353451826,1353451823,1353451817,1353451883,1353451877,1353451875,1353451870,1353451866,1353451860,1353451958,1353451953,1353451938,1353451930,1353451927,1353451924,1353451999,1353451996,1353451994,1353451991); 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([22396625]) Inside saveOutput : final : False verbose : True original output for save of step final : {1353451999: ('0.05686212443273574',), 1353451996: ('0.05686212443273574',), 1353451994: ('0.05686212443273574',), 1353451991: ('0.05686212443273574',), 1353451958: ('0.05686212443273574',), 1353451953: ('0.05686212443273574',), 1353451938: ('0.05686212443273574',), 1353451930: ('0.05686212443273574',), 1353451927: ('0.05686212443273574',), 1353451924: ('0.05686212443273574',)} new output for save of step final : {1353451999: ('0.05686212443273574',), 1353451996: ('0.05686212443273574',), 1353451994: ('0.05686212443273574',), 1353451991: ('0.05686212443273574',), 1353451958: ('0.05686212443273574',), 1353451953: ('0.05686212443273574',), 1353451938: ('0.05686212443273574',), 1353451930: ('0.05686212443273574',), 1353451927: ('0.05686212443273574',), 1353451924: ('0.05686212443273574',)} [1353451999, 1353451996, 1353451994, 1353451991, 1353451958, 1353451953, 1353451938, 1353451930, 1353451927, 1353451924] map_info['map_portfolio_photo'] : {22396625: [1353451999, 1353451996, 1353451994, 1353451991, 1353451958, 1353451953, 1353451938, 1353451930, 1353451927, 1353451924, 1353451883, 1353451877, 1353451875, 1353451870, 1353451866, 1353451860, 1353451830, 1353451826, 1353451823, 1353451817, 1353451799, 1353451787, 1353451785, 1353451782, 1353451779, 1353451777, 1353451741, 1353451740, 1353451738]} final : False mtd_id 4302 list_pids : [1353451999, 1353451996, 1353451994, 1353451991, 1353451958, 1353451953, 1353451938, 1353451930, 1353451927, 1353451924] Looping around the photos to save general results len do output : 10 /1353451999.Didn't retrieve data . /1353451996.Didn't retrieve data . /1353451994.Didn't retrieve data . /1353451991.Didn't retrieve data . /1353451958.Didn't retrieve data . /1353451953.Didn't retrieve data . /1353451938.Didn't retrieve data . /1353451930.Didn't retrieve data . /1353451927.Didn't retrieve data . /1353451924.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, '2758883') ('4302', '22396625', '1353451999', None, None, None, None, None, '2758883') ('4302', None, None, None, None, None, None, None, '2758883') ('4302', '22396625', '1353451996', None, None, None, None, None, '2758883') ('4302', None, None, None, None, None, None, None, '2758883') ('4302', '22396625', '1353451994', None, None, None, None, None, '2758883') ('4302', None, None, None, None, None, None, None, '2758883') ('4302', '22396625', '1353451991', None, None, None, None, None, '2758883') ('4302', None, None, None, None, None, None, None, '2758883') ('4302', '22396625', '1353451958', None, None, None, None, None, '2758883') ('4302', None, None, None, None, None, None, None, '2758883') ('4302', '22396625', '1353451953', None, None, None, None, None, '2758883') ('4302', None, None, None, None, None, None, None, '2758883') ('4302', '22396625', '1353451938', None, None, None, None, None, '2758883') ('4302', None, None, None, None, None, None, None, '2758883') ('4302', '22396625', '1353451930', None, None, None, None, None, '2758883') ('4302', None, None, None, None, None, None, None, '2758883') ('4302', '22396625', '1353451927', None, None, None, None, None, '2758883') ('4302', None, None, None, None, None, None, None, '2758883') ('4302', '22396625', '1353451924', None, None, None, None, None, '2758883') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22396625', '1353451999', '0.05686212443273574', None, None, None, None, '2758883'), ('4302', '22396625', '1353451996', '0.05686212443273574', None, None, None, None, '2758883'), ('4302', '22396625', '1353451994', '0.05686212443273574', None, None, None, None, '2758883'), ('4302', '22396625', '1353451991', '0.05686212443273574', None, None, None, None, '2758883'), ('4302', '22396625', '1353451958', '0.05686212443273574', None, None, None, None, '2758883'), ('4302', '22396625', '1353451953', '0.05686212443273574', None, None, None, None, '2758883'), ('4302', '22396625', '1353451938', '0.05686212443273574', None, None, None, None, '2758883'), ('4302', '22396625', '1353451930', '0.05686212443273574', None, None, None, None, '2758883'), ('4302', '22396625', '1353451927', '0.05686212443273574', None, None, None, None, '2758883'), ('4302', '22396625', '1353451924', '0.05686212443273574', None, None, None, None, '2758883')] time used for this insertion : 0.013319969177246094 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06487822532653809 time spend to save output : 0.013995170593261719 total time spend for step 2 : 0.0788733959197998 step3:velours_tree Thu Apr 24 20:23:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22396625: [{'autre_refus': 22396689, 'Carton_brun': 22396690, 'mal_croppe': 22396691, 'environnement': 22396692, 'flou': 22396693, 'cartonnette': 22396694, 'Carton_gris': 22396695, 'kraft': 22396696, 'papier': 22396697, 'Teint_Dans_La_Masse': 22396698, 'metal': 22396699, 'plastique': 22396700}]} input_args_next_step : {22396625: ()} output_args : {22396625: [{'autre_refus': 22396689, 'Carton_brun': 22396690, 'mal_croppe': 22396691, 'environnement': 22396692, 'flou': 22396693, 'cartonnette': 22396694, 'Carton_gris': 22396695, 'kraft': 22396696, 'papier': 22396697, 'Teint_Dans_La_Masse': 22396698, 'metal': 22396699, 'plastique': 22396700}]} args : 22396625 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 : ({'autre_refus': 22396689, 'Carton_brun': 22396690, 'mal_croppe': 22396691, 'environnement': 22396692, 'flou': 22396693, 'cartonnette': 22396694, 'Carton_gris': 22396695, 'kraft': 22396696, 'papier': 22396697, 'Teint_Dans_La_Masse': 22396698, 'metal': 22396699, 'plastique': 22396700},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22396625) 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([22396625]) 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.48586153984069824 time spend to save output : 5.078315734863281e-05 total time spend for step 3 : 0.4859123229980469 step4:send_mail_cod Thu Apr 24 20:23:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1353451999: ('0.05686212443273574',), 1353451996: ('0.05686212443273574',), 1353451994: ('0.05686212443273574',), 1353451991: ('0.05686212443273574',), 1353451958: ('0.05686212443273574',), 1353451953: ('0.05686212443273574',), 1353451938: ('0.05686212443273574',), 1353451930: ('0.05686212443273574',), 1353451927: ('0.05686212443273574',), 1353451924: ('0.05686212443273574',)} input_args_next_step : {1353451999: ()} output_args : {1353451999: ('0.05686212443273574',), 1353451996: ('0.05686212443273574',), 1353451994: ('0.05686212443273574',), 1353451991: ('0.05686212443273574',), 1353451958: ('0.05686212443273574',), 1353451953: ('0.05686212443273574',), 1353451938: ('0.05686212443273574',), 1353451930: ('0.05686212443273574',), 1353451927: ('0.05686212443273574',), 1353451924: ('0.05686212443273574',)} args : 1353451999 depend.output_id : 0 input_args_next_step : {1353451999: ('0.05686212443273574',), 1353451996: ()} output_args : {1353451999: ('0.05686212443273574',), 1353451996: ('0.05686212443273574',), 1353451994: ('0.05686212443273574',), 1353451991: ('0.05686212443273574',), 1353451958: ('0.05686212443273574',), 1353451953: ('0.05686212443273574',), 1353451938: ('0.05686212443273574',), 1353451930: ('0.05686212443273574',), 1353451927: ('0.05686212443273574',), 1353451924: ('0.05686212443273574',)} args : 1353451996 depend.output_id : 0 input_args_next_step : {1353451999: ('0.05686212443273574',), 1353451996: ('0.05686212443273574',), 1353451994: ()} output_args : {1353451999: ('0.05686212443273574',), 1353451996: ('0.05686212443273574',), 1353451994: ('0.05686212443273574',), 1353451991: ('0.05686212443273574',), 1353451958: ('0.05686212443273574',), 1353451953: ('0.05686212443273574',), 1353451938: ('0.05686212443273574',), 1353451930: ('0.05686212443273574',), 1353451927: ('0.05686212443273574',), 1353451924: ('0.05686212443273574',)} args : 1353451994 depend.output_id : 0 input_args_next_step : {1353451999: ('0.05686212443273574',), 1353451996: ('0.05686212443273574',), 1353451994: ('0.05686212443273574',), 1353451991: ()} output_args : {1353451999: ('0.05686212443273574',), 1353451996: ('0.05686212443273574',), 1353451994: ('0.05686212443273574',), 1353451991: ('0.05686212443273574',), 1353451958: ('0.05686212443273574',), 1353451953: ('0.05686212443273574',), 1353451938: ('0.05686212443273574',), 1353451930: ('0.05686212443273574',), 1353451927: ('0.05686212443273574',), 1353451924: ('0.05686212443273574',)} args : 1353451991 depend.output_id : 0 input_args_next_step : {1353451999: ('0.05686212443273574',), 1353451996: ('0.05686212443273574',), 1353451994: ('0.05686212443273574',), 1353451991: ('0.05686212443273574',), 1353451958: ()} output_args : {1353451999: ('0.05686212443273574',), 1353451996: ('0.05686212443273574',), 1353451994: ('0.05686212443273574',), 1353451991: ('0.05686212443273574',), 1353451958: ('0.05686212443273574',), 1353451953: ('0.05686212443273574',), 1353451938: ('0.05686212443273574',), 1353451930: ('0.05686212443273574',), 1353451927: ('0.05686212443273574',), 1353451924: ('0.05686212443273574',)} args : 1353451958 depend.output_id : 0 input_args_next_step : {1353451999: ('0.05686212443273574',), 1353451996: ('0.05686212443273574',), 1353451994: ('0.05686212443273574',), 1353451991: ('0.05686212443273574',), 1353451958: ('0.05686212443273574',), 1353451953: ()} output_args : {1353451999: ('0.05686212443273574',), 1353451996: ('0.05686212443273574',), 1353451994: ('0.05686212443273574',), 1353451991: ('0.05686212443273574',), 1353451958: ('0.05686212443273574',), 1353451953: ('0.05686212443273574',), 1353451938: ('0.05686212443273574',), 1353451930: ('0.05686212443273574',), 1353451927: ('0.05686212443273574',), 1353451924: ('0.05686212443273574',)} args : 1353451953 depend.output_id : 0 input_args_next_step : {1353451999: ('0.05686212443273574',), 1353451996: ('0.05686212443273574',), 1353451994: ('0.05686212443273574',), 1353451991: ('0.05686212443273574',), 1353451958: ('0.05686212443273574',), 1353451953: ('0.05686212443273574',), 1353451938: ()} output_args : {1353451999: ('0.05686212443273574',), 1353451996: ('0.05686212443273574',), 1353451994: ('0.05686212443273574',), 1353451991: ('0.05686212443273574',), 1353451958: ('0.05686212443273574',), 1353451953: ('0.05686212443273574',), 1353451938: ('0.05686212443273574',), 1353451930: ('0.05686212443273574',), 1353451927: ('0.05686212443273574',), 1353451924: ('0.05686212443273574',)} args : 1353451938 depend.output_id : 0 input_args_next_step : {1353451999: ('0.05686212443273574',), 1353451996: ('0.05686212443273574',), 1353451994: ('0.05686212443273574',), 1353451991: ('0.05686212443273574',), 1353451958: ('0.05686212443273574',), 1353451953: ('0.05686212443273574',), 1353451938: ('0.05686212443273574',), 1353451930: ()} output_args : {1353451999: ('0.05686212443273574',), 1353451996: ('0.05686212443273574',), 1353451994: ('0.05686212443273574',), 1353451991: ('0.05686212443273574',), 1353451958: ('0.05686212443273574',), 1353451953: ('0.05686212443273574',), 1353451938: ('0.05686212443273574',), 1353451930: ('0.05686212443273574',), 1353451927: ('0.05686212443273574',), 1353451924: ('0.05686212443273574',)} args : 1353451930 depend.output_id : 0 input_args_next_step : {1353451999: ('0.05686212443273574',), 1353451996: ('0.05686212443273574',), 1353451994: ('0.05686212443273574',), 1353451991: ('0.05686212443273574',), 1353451958: ('0.05686212443273574',), 1353451953: ('0.05686212443273574',), 1353451938: ('0.05686212443273574',), 1353451930: ('0.05686212443273574',), 1353451927: ()} output_args : {1353451999: ('0.05686212443273574',), 1353451996: ('0.05686212443273574',), 1353451994: ('0.05686212443273574',), 1353451991: ('0.05686212443273574',), 1353451958: ('0.05686212443273574',), 1353451953: ('0.05686212443273574',), 1353451938: ('0.05686212443273574',), 1353451930: ('0.05686212443273574',), 1353451927: ('0.05686212443273574',), 1353451924: ('0.05686212443273574',)} args : 1353451927 depend.output_id : 0 input_args_next_step : {1353451999: ('0.05686212443273574',), 1353451996: ('0.05686212443273574',), 1353451994: ('0.05686212443273574',), 1353451991: ('0.05686212443273574',), 1353451958: ('0.05686212443273574',), 1353451953: ('0.05686212443273574',), 1353451938: ('0.05686212443273574',), 1353451930: ('0.05686212443273574',), 1353451927: ('0.05686212443273574',), 1353451924: ()} output_args : {1353451999: ('0.05686212443273574',), 1353451996: ('0.05686212443273574',), 1353451994: ('0.05686212443273574',), 1353451991: ('0.05686212443273574',), 1353451958: ('0.05686212443273574',), 1353451953: ('0.05686212443273574',), 1353451938: ('0.05686212443273574',), 1353451930: ('0.05686212443273574',), 1353451927: ('0.05686212443273574',), 1353451924: ('0.05686212443273574',)} args : 1353451924 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 : {22396625: [{'autre_refus': 22396689, 'Carton_brun': 22396690, 'mal_croppe': 22396691, 'environnement': 22396692, 'flou': 22396693, 'cartonnette': 22396694, 'Carton_gris': 22396695, 'kraft': 22396696, 'papier': 22396697, 'Teint_Dans_La_Masse': 22396698, 'metal': 22396699, 'plastique': 22396700}]} input_args_next_step : {1353451999: ('0.05686212443273574',), 1353451996: ('0.05686212443273574',), 1353451994: ('0.05686212443273574',), 1353451991: ('0.05686212443273574',), 1353451958: ('0.05686212443273574',), 1353451953: ('0.05686212443273574',), 1353451938: ('0.05686212443273574',), 1353451930: ('0.05686212443273574',), 1353451927: ('0.05686212443273574',), 1353451924: ('0.05686212443273574',), 22396625: ()} output_args : {22396625: [{'autre_refus': 22396689, 'Carton_brun': 22396690, 'mal_croppe': 22396691, 'environnement': 22396692, 'flou': 22396693, 'cartonnette': 22396694, 'Carton_gris': 22396695, 'kraft': 22396696, 'papier': 22396697, 'Teint_Dans_La_Masse': 22396698, 'metal': 22396699, 'plastique': 22396700}]} args : 22396625 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :11, first value : ('0.05686212443273574',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22396625) 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 (1353451999,1353451996,1353451994,1353451991,1353451958,1353451953,1353451938,1353451930,1353451927,1353451924) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1353451924 begin to download photo : 1353451938 begin to download photo : 1353451991 begin to download photo : 1353451999 download finish for photo 1353451999 download finish for photo 1353451991 begin to download photo : 1353451994 download finish for photo 1353451938 begin to download photo : 1353451953 download finish for photo 1353451924 begin to download photo : 1353451927 download finish for photo 1353451994 begin to download photo : 1353451996 download finish for photo 1353451927 begin to download photo : 1353451930 download finish for photo 1353451953 begin to download photo : 1353451958 download finish for photo 1353451996 download finish for photo 1353451930 download finish for photo 1353451958 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P22396625_24-04-2025_20_23_01.pdf 22396689 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=22396689 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353452283: '1745518902_466848_1353451866_baf3715776d8635e24172429106a884c_rle_crop_3767950958_0.png'} change filename to text .imagette223966891745518981/ imagette223966891745518981/1745518902_466848_1353451866_baf3715776d8635e24172429106a884c_rle_crop_3767950958_0.png.png imagette223966911745518981/ imagette223966931745518981/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/b3d1563bcfe87877261517cc78bd844c_19169296.png imagette223966891745518981 22396691 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=22396691 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223966911745518981 22396693 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=22396693 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223966931745518981 22396694 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=22396694 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353451976: '1745518811_1198690_1353451799_08d5b0049ec3b2f92028c4408a882279_rle_crop_3767949739_0.png', 1353451977: '1745518811_1198690_1353451799_08d5b0049ec3b2f92028c4408a882279_rle_crop_3767949742_0.png', 1353452300: '1745518902_466848_1353451875_1014b3fcf364af8d1d3951743cf1aa50_rle_crop_3767950910_0.png', 1353452303: '1745518902_466848_1353451875_1014b3fcf364af8d1d3951743cf1aa50_rle_crop_3767950914_0.png', 1353452305: '1745518902_466848_1353451866_baf3715776d8635e24172429106a884c_rle_crop_3767950961_0.png', 1353452486: '1745518933_1200089_1353451826_8e411f2434166d87c5b41aaab2ef2e20_rle_crop_3767951896_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/d9fcebad4b21b84c279c3588d8a3df8e_31109168.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/faf4baa649a4ec23c387e335ef0d84ba_58211690.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/7559caf16741126e8749b277aca6a48c_32365179.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/3bd9e881f9756e0381bee1e8f22867aa_30022293.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/77bdf38e29aa52e4b049cb6648203e50_85884316.png change filename to text .imagette223966941745518981/ imagette223966941745518981/1745518902_466848_1353451866_baf3715776d8635e24172429106a884c_rle_crop_3767950961_0.png.png imagette223966941745518981/1745518811_1198690_1353451799_08d5b0049ec3b2f92028c4408a882279_rle_crop_3767949739_0.png.png imagette223966941745518981/1745518902_466848_1353451875_1014b3fcf364af8d1d3951743cf1aa50_rle_crop_3767950914_0.png.png imagette223966941745518981/1745518933_1200089_1353451826_8e411f2434166d87c5b41aaab2ef2e20_rle_crop_3767951896_0.png.png imagette223966941745518981/1745518902_466848_1353451875_1014b3fcf364af8d1d3951743cf1aa50_rle_crop_3767950910_0.png.png imagette223966941745518981/1745518811_1198690_1353451799_08d5b0049ec3b2f92028c4408a882279_rle_crop_3767949742_0.png.png imagette223966961745518981/ imagette223966991745518981/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/b56b4f3bd0b3fd80244c3b7c6d019f12_48354863.png imagette223966941745518981 22396696 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=22396696 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223966961745518981 22396699 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=22396699 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223966991745518981 22396700 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=22396700 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353452326: '1745518902_466848_1353451870_0bd6ffd5aec0229ec29ca4012baafbb8_rle_crop_3767950936_0.png', 1353452328: '1745518902_466848_1353451866_baf3715776d8635e24172429106a884c_rle_crop_3767950953_0.png', 1353452330: '1745518902_466848_1353451860_58eba543b2a3d84fc2ea1bc58a6fdacb_rle_crop_3767950973_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/b62857c668f7b8bf1cc9310a9fb0efae_72911262.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/494148ed06746879ffe7c0f430a9b844_35147208.png change filename to text .imagette223967001745518981/ imagette223967001745518981/1745518902_466848_1353451870_0bd6ffd5aec0229ec29ca4012baafbb8_rle_crop_3767950936_0.png.png imagette223967001745518981/1745518902_466848_1353451860_58eba543b2a3d84fc2ea1bc58a6fdacb_rle_crop_3767950973_0.png.png imagette223967001745518981/1745518902_466848_1353451866_baf3715776d8635e24172429106a884c_rle_crop_3767950953_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/d712cb7279ba62250ddf001e7be7c34a_56999305.png imagette223967001745518981 22396690 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=22396690 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353452314: '1745518902_466848_1353451870_0bd6ffd5aec0229ec29ca4012baafbb8_rle_crop_3767950944_0.png', 1353452316: '1745518902_466848_1353451870_0bd6ffd5aec0229ec29ca4012baafbb8_rle_crop_3767950943_0.png', 1353452504: '1745518933_1200089_1353451826_8e411f2434166d87c5b41aaab2ef2e20_rle_crop_3767951899_0.png', 1353452506: '1745518933_1200089_1353451826_8e411f2434166d87c5b41aaab2ef2e20_rle_crop_3767951900_0.png', 1353452507: '1745518933_1200089_1353451817_84bbbc789bdb8ed75655475e5356dedc_rle_crop_3767951924_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/237df8b646cdc61cc4dc6add31637315_70244493.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/67084fefc50400fef6f4cf83c07f9a98_61792771.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/38b7d0d0e6b8052b84eeebc55adc3278_16115159.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/7766df2bfcbaff24396af78a662a5e35_52711781.png change filename to text .imagette223966901745518981/ imagette223966901745518981/1745518902_466848_1353451870_0bd6ffd5aec0229ec29ca4012baafbb8_rle_crop_3767950943_0.png.png imagette223966901745518981/1745518933_1200089_1353451817_84bbbc789bdb8ed75655475e5356dedc_rle_crop_3767951924_0.png.png imagette223966901745518981/1745518933_1200089_1353451826_8e411f2434166d87c5b41aaab2ef2e20_rle_crop_3767951900_0.png.png imagette223966901745518981/1745518902_466848_1353451870_0bd6ffd5aec0229ec29ca4012baafbb8_rle_crop_3767950944_0.png.png imagette223966901745518981/1745518933_1200089_1353451826_8e411f2434166d87c5b41aaab2ef2e20_rle_crop_3767951899_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/bcfcedb52cc1997c844a678db752dbae_99125094.png imagette223966901745518981 22396695 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=22396695 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353452290: '1745518902_466848_1353451870_0bd6ffd5aec0229ec29ca4012baafbb8_rle_crop_3767950933_0.png'} change filename to text .imagette223966951745518982/ imagette223966951745518982/1745518902_466848_1353451870_0bd6ffd5aec0229ec29ca4012baafbb8_rle_crop_3767950933_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/7cec0933a5398021c6daa2b03924f83d_30266258.png imagette223966951745518982 22396698 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=22396698 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353451971: '1745518811_1198690_1353451799_08d5b0049ec3b2f92028c4408a882279_rle_crop_3767949743_0.png', 1353451972: '1745518811_1198690_1353451799_08d5b0049ec3b2f92028c4408a882279_rle_crop_3767949744_0.png', 1353451973: '1745518811_1198690_1353451740_cc5ad484f061d4587c4fbb27e0df08c3_rle_crop_3767949759_0.png', 1353452266: '1745518902_466848_1353451870_0bd6ffd5aec0229ec29ca4012baafbb8_rle_crop_3767950946_0.png', 1353452268: '1745518902_466848_1353451870_0bd6ffd5aec0229ec29ca4012baafbb8_rle_crop_3767950932_0.png', 1353452270: '1745518902_466848_1353451866_baf3715776d8635e24172429106a884c_rle_crop_3767950959_0.png', 1353452273: '1745518902_466848_1353451866_baf3715776d8635e24172429106a884c_rle_crop_3767950962_0.png', 1353452275: '1745518902_466848_1353451866_baf3715776d8635e24172429106a884c_rle_crop_3767950967_0.png', 1353452277: '1745518902_466848_1353451860_58eba543b2a3d84fc2ea1bc58a6fdacb_rle_crop_3767950980_0.png', 1353452482: '1745518933_1200089_1353451826_8e411f2434166d87c5b41aaab2ef2e20_rle_crop_3767951902_0.png', 1353452483: '1745518933_1200089_1353451823_e166ed889fb44a230edde36605e60ade_rle_crop_3767951913_0.png', 1353452484: '1745518933_1200089_1353451817_84bbbc789bdb8ed75655475e5356dedc_rle_crop_3767951925_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/872088f0f46019e275f3290dd0838b1d_15393889.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/6cf91848f18dffaca2bdb5199857845d_90916593.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/66ffe2b44067632fa4988c1a6b20cca1_8165308.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/91f6bebed42866bd3e05a76ecb164324_66222407.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/eeb0ae6161e732c0d537b7a6a843729f_41703916.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/2ad4632a62b4978d5f580c56ef4ed70f_52081861.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/8a25778a8149d4c440f8cbdde94826e1_5176316.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/dd2d1686c320bccc156798f9bea94aa6_48084067.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/e199b25b374369ac57b45351af01d3a5_21442391.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/50e6555f752a4268e135bb0690104e42_33191260.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/38f835a9337de4306945a51db1ff0d23_56950245.png change filename to text .imagette223966981745518982/ imagette223966981745518982/1745518933_1200089_1353451817_84bbbc789bdb8ed75655475e5356dedc_rle_crop_3767951925_0.png.png imagette223966981745518982/1745518811_1198690_1353451740_cc5ad484f061d4587c4fbb27e0df08c3_rle_crop_3767949759_0.png.png imagette223966981745518982/1745518902_466848_1353451860_58eba543b2a3d84fc2ea1bc58a6fdacb_rle_crop_3767950980_0.png.png imagette223966981745518982/1745518811_1198690_1353451799_08d5b0049ec3b2f92028c4408a882279_rle_crop_3767949744_0.png.png imagette223966981745518982/1745518902_466848_1353451870_0bd6ffd5aec0229ec29ca4012baafbb8_rle_crop_3767950932_0.png.png imagette223966981745518982/1745518811_1198690_1353451799_08d5b0049ec3b2f92028c4408a882279_rle_crop_3767949743_0.png.png imagette223966981745518982/1745518902_466848_1353451866_baf3715776d8635e24172429106a884c_rle_crop_3767950959_0.png.png imagette223966981745518982/1745518902_466848_1353451866_baf3715776d8635e24172429106a884c_rle_crop_3767950967_0.png.png imagette223966981745518982/1745518902_466848_1353451870_0bd6ffd5aec0229ec29ca4012baafbb8_rle_crop_3767950946_0.png.png imagette223966981745518982/1745518933_1200089_1353451826_8e411f2434166d87c5b41aaab2ef2e20_rle_crop_3767951902_0.png.png imagette223966981745518982/1745518933_1200089_1353451823_e166ed889fb44a230edde36605e60ade_rle_crop_3767951913_0.png.png imagette223966981745518982/1745518902_466848_1353451866_baf3715776d8635e24172429106a884c_rle_crop_3767950962_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/03d69799a721d4a77d6fcf89a8f09fa7_15302102.png imagette223966981745518982 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22396625 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22396703,22396704,22396705,22396706,22396707,22396708,22396709,22396710,22396711,22396712,22396713,22396714?tags=autre_refus,Carton_brun,mal_croppe,environnement,flou,cartonnette,Carton_gris,kraft,papier,Teint_Dans_La_Masse,metal,plastique your option no_mail is active, we will not send the real mail to your client args[1353451999] : ('0.05686212443273574',) no score found for photo 1353451999 We are sending mail with results at report@fotonower.com args[1353451996] : ('0.05686212443273574',) no score found for photo 1353451996 We are sending mail with results at report@fotonower.com args[1353451994] : ('0.05686212443273574',) no score found for photo 1353451994 We are sending mail with results at report@fotonower.com args[1353451991] : ('0.05686212443273574',) no score found for photo 1353451991 We are sending mail with results at report@fotonower.com args[1353451958] : ('0.05686212443273574',) no score found for photo 1353451958 We are sending mail with results at report@fotonower.com args[1353451953] : ('0.05686212443273574',) no score found for photo 1353451953 We are sending mail with results at report@fotonower.com args[1353451938] : ('0.05686212443273574',) no score found for photo 1353451938 We are sending mail with results at report@fotonower.com args[1353451930] : ('0.05686212443273574',) no score found for photo 1353451930 We are sending mail with results at report@fotonower.com args[1353451927] : ('0.05686212443273574',) no score found for photo 1353451927 We are sending mail with results at report@fotonower.com args[1353451924] : ('0.05686212443273574',) no score found for photo 1353451924 We are sending mail with results at report@fotonower.com refus_total : 0.05686212443273574 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=22396625 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_P22396625_24-04-2025_20_23_01.pdf results_Auto_P22396625_24-04-2025_20_23_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22396625_24-04-2025_20_23_01.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','22396625','results_Auto_P22396625_24-04-2025_20_23_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22396625_24-04-2025_20_23_01.pdf','pdf','','0.17','0.05686212443273574') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22396625]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1353451999, 1353451996, 1353451994, 1353451991, 1353451958, 1353451953, 1353451938, 1353451930, 1353451927, 1353451924] map_info['map_portfolio_photo'] : {22396625: [1353451999, 1353451996, 1353451994, 1353451991, 1353451958, 1353451953, 1353451938, 1353451930, 1353451927, 1353451924, 1353451883, 1353451877, 1353451875, 1353451870, 1353451866, 1353451860, 1353451830, 1353451826, 1353451823, 1353451817, 1353451799, 1353451787, 1353451785, 1353451782, 1353451779, 1353451777, 1353451741, 1353451740, 1353451738]} final : False mtd_id 4302 list_pids : [1353451999, 1353451996, 1353451994, 1353451991, 1353451958, 1353451953, 1353451938, 1353451930, 1353451927, 1353451924] 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, '2758883') ('4302', '22396625', '1353451999', None, None, None, None, None, '2758883') ('4302', None, None, None, None, None, None, None, '2758883') ('4302', '22396625', '1353451996', None, None, None, None, None, '2758883') ('4302', None, None, None, None, None, None, None, '2758883') ('4302', '22396625', '1353451994', None, None, None, None, None, '2758883') ('4302', None, None, None, None, None, None, None, '2758883') ('4302', '22396625', '1353451991', None, None, None, None, None, '2758883') ('4302', None, None, None, None, None, None, None, '2758883') ('4302', '22396625', '1353451958', None, None, None, None, None, '2758883') ('4302', None, None, None, None, None, None, None, '2758883') ('4302', '22396625', '1353451953', None, None, None, None, None, '2758883') ('4302', None, None, None, None, None, None, None, '2758883') ('4302', '22396625', '1353451938', None, None, None, None, None, '2758883') ('4302', None, None, None, None, None, None, None, '2758883') ('4302', '22396625', '1353451930', None, None, None, None, None, '2758883') ('4302', None, None, None, None, None, None, None, '2758883') ('4302', '22396625', '1353451927', None, None, None, None, None, '2758883') ('4302', None, None, None, None, None, None, None, '2758883') ('4302', '22396625', '1353451924', None, None, None, None, None, '2758883') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22396625', '1353451999', None, None, None, None, None, '2758883'), ('4302', '22396625', '1353451996', None, None, None, None, None, '2758883'), ('4302', '22396625', '1353451994', None, None, None, None, None, '2758883'), ('4302', '22396625', '1353451991', None, None, None, None, None, '2758883'), ('4302', '22396625', '1353451958', None, None, None, None, None, '2758883'), ('4302', '22396625', '1353451953', None, None, None, None, None, '2758883'), ('4302', '22396625', '1353451938', None, None, None, None, None, '2758883'), ('4302', '22396625', '1353451930', None, None, None, None, None, '2758883'), ('4302', '22396625', '1353451927', None, None, None, None, None, '2758883'), ('4302', '22396625', '1353451924', None, None, None, None, None, '2758883')] time used for this insertion : 0.014409780502319336 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.1555612087249756 time spend to save output : 0.014691591262817383 total time spend for step 4 : 3.170252799987793 step5:split_time_score Thu Apr 24 20:23: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 : ['22396625'] 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 : [('22396625',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22396625) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1353451999: {'path': 'temp/1745518980_2308093_1353451999_7fd024e2623d1ca0e1ecda224e328418.jpg', 'extension': 'jpg'}, 1353451991: {'path': 'temp/1745518980_2308093_1353451991_8d6800c9051bf02d95f9c829ba5c4df2.jpg', 'extension': 'jpg'}, 1353451994: {'path': 'temp/1745518980_2308093_1353451994_9e441e6049d8ae8bd6dfb5403dac4769.jpg', 'extension': 'jpg'}, 1353451996: {'path': 'temp/1745518980_2308093_1353451996_8c2d1dc6ca433d0a4febbfebf7256633.jpg', 'extension': 'jpg'}, 1353451924: {'path': 'temp/1745518980_2308093_1353451924_0259e8e7e813113f845a99741f4c2a6e.jpg', 'extension': 'jpg'}, 1353451927: {'path': 'temp/1745518980_2308093_1353451927_459d2afcf154379bf288b4d660133bb1.jpg', 'extension': 'jpg'}, 1353451930: {'path': 'temp/1745518980_2308093_1353451930_6ea966b68113b2f0d5397bc85026faf5.jpg', 'extension': 'jpg'}, 1353451938: {'path': 'temp/1745518980_2308093_1353451938_1e6c695ab6fa823427bad708961dab65.jpg', 'extension': 'jpg'}, 1353451953: {'path': 'temp/1745518980_2308093_1353451953_0ba2ee51188d6dd19ecaa7316f9aa07b.jpg', 'extension': 'jpg'}, 1353451958: {'path': 'temp/1745518980_2308093_1353451958_fb3a99b15a95b587ef35238396a89c6d.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 = 22396625; (('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 = 22396625 group by h (('20', 29),) 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=22396625 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 (22396625) 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 (22396625) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 24042025 22396625 Nombre de photos uploadées : 29 / 23040 (0%) 24042025 22396625 Nombre de photos taguées (types de déchets): 0 / 29 (0%) 24042025 22396625 Nombre de photos taguées (volume) : 0 / 29 (0%) [{'photo_id': 1353451741, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/f318106b02e4710b7d498416cd3f19fa.jpg', 'username': None, 'uploaded_at': 1745518567, 'text': 'image_24042025_20_15_24_010139m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1353451740, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/cc5ad484f061d4587c4fbb27e0df08c3.jpg', 'username': None, 'uploaded_at': 1745518567, 'text': 'image_24042025_20_15_34_010133m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1353451738, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/456c8d795ba1ff63e2ef1a16f8e989e3.jpg', 'username': None, 'uploaded_at': 1745518567, 'text': 'image_24042025_20_15_44_010137m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1353451799, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/08d5b0049ec3b2f92028c4408a882279.jpg', 'username': None, 'uploaded_at': 1745518627, 'text': 'image_24042025_20_15_54_010140m0.jpg 4e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 4.76837158203125e-06 elapsed_time : order_list_meta_photo_and_scores 1.3113021850585938e-05 ????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002777099609375 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22396625, '2025-04-24' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1743777,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.023074865341186523 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= 1743777 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1743777, 'dashboard_run_id': 1754426, 'mtr_portfolio_id': 22394741, 'dashboard_result_id': 10080593, '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_P22394741_24-04-2025_19_46_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22394793, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22394794, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22394795, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22394796, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22394797, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22394798, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22394799, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22394800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22394801, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22394802, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22394803, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22394804, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1754426, 'mtr_portfolio_id': 22395373, 'dashboard_result_id': 10080594, '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_P22395373_24-04-2025_20_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22395431, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22395432, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22395433, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22395434, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22395435, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22395436, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22395437, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22395438, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22395439, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22395440, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22395441, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22395442, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1754426, 'mtr_portfolio_id': 22395952, 'dashboard_result_id': 10080595, '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_P22395952_24-04-2025_20_19_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22396015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22396016, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22396017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22396018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22396019, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22396020, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22396021, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22396022, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22396023, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22396024, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22396025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22396026, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1754426, 'mtr_portfolio_id': 22396625, 'dashboard_result_id': 10080596, '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_P22396625_24-04-2025_20_21_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22396689, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22396690, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22396691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22396692, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22396693, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22396694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22396695, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22396696, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22396697, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22396698, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22396699, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22396700, '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 = 22394741 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': 2758727, 'mtr_portfolio_id': 22394741, 'created_at': datetime.datetime(2025, 4, 24, 19, 46, 59), 'result': '0.06821332546530194', 'result_long': None, 'result_double': None}] Qualite : 0.06821332546530194 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22394741 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22394741_24-04-2025_19_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22394741 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_P22394741_24-04-2025_19_46_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22394793, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22394794, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22394795, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22394796, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22394797, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22394798, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22394799, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22394800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22394801, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22394802, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22394803, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22394804, 'pht': 3726}}" where mtr_portfolio_id = 22394741 and dashboard_run_id = 1754426 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`=22394741 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10080593, 0.06821332546530194, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22394741_24-04-2025_19_46_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22394793, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22394794, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22394795, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22394796, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22394797, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22394798, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22394799, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22394800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22394801, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22394802, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22394803, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22394804, '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 = 22395373 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': 2758767, 'mtr_portfolio_id': 22395373, 'created_at': datetime.datetime(2025, 4, 24, 20, 3), 'result': '0.06351724721165095', 'result_long': None, 'result_double': None}] Qualite : 0.06351724721165095 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22395373 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22395373_24-04-2025_20_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22395373 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_P22395373_24-04-2025_20_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22395431, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22395432, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22395433, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22395434, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22395435, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22395436, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22395437, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22395438, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22395439, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22395440, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22395441, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22395442, 'pht': 3726}}" where mtr_portfolio_id = 22395373 and dashboard_run_id = 1754426 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`=22395373 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10080594, 0.06351724721165095, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22395373_24-04-2025_20_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22395431, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22395432, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22395433, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22395434, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22395435, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22395436, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22395437, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22395438, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22395439, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22395440, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22395441, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22395442, '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 = 22395952 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': 2758833, 'mtr_portfolio_id': 22395952, 'created_at': datetime.datetime(2025, 4, 24, 20, 18, 58), 'result': '0.04074928029968472', 'result_long': None, 'result_double': None}] Qualite : 0.04074928029968472 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22395952 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22395952_24-04-2025_20_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22395952 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_P22395952_24-04-2025_20_19_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22396015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22396016, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22396017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22396018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22396019, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22396020, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22396021, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22396022, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22396023, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22396024, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22396025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22396026, 'pht': 3726}}" where mtr_portfolio_id = 22395952 and dashboard_run_id = 1754426 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`=22395952 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10080595, 0.04074928029968472, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22395952_24-04-2025_20_19_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22396015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22396016, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22396017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22396018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22396019, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22396020, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22396021, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22396022, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22396023, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22396024, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22396025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22396026, '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 = 22396625 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': 2758883, 'mtr_portfolio_id': 22396625, 'created_at': datetime.datetime(2025, 4, 24, 20, 23), 'result': '0.05686212443273574', 'result_long': None, 'result_double': None}] Qualite : 0.05686212443273574 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22396625 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22396625_24-04-2025_20_23_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22396625 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_P22396625_24-04-2025_20_23_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22396689, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22396690, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22396691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22396692, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22396693, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22396694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22396695, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22396696, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22396697, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22396698, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22396699, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22396700, 'pht': 3726}}" where mtr_portfolio_id = 22396625 and dashboard_run_id = 1754426 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`=22396625 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10080596, 0.05686212443273574, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22396625_24-04-2025_20_23_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22396689, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22396690, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22396691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22396692, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22396693, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22396694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22396695, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22396696, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22396697, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22396698, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22396699, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22396700, '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 (22394741,22395373,22395952,22396625) result : ((1353438447,), (1353438450,), (1353438453,), (1353438456,), (1353438584,), (1353438588,), (1353438591,), (1353438595,), (1353438598,), (1353438642,), (1353438648,), (1353438651,), (1353439053,), (1353439056,), (1353439060,), (1353439097,), (1353439129,), (1353439156,), (1353439284,), (1353439311,), (1353439327,), (1353439331,), (1353439333,), (1353439336,), (1353439361,), (1353439363,), (1353439370,), (1353439373,), (1353439533,), (1353439565,), (1353439595,), (1353439623,), (1353439665,), (1353439692,), (1353439814,), (1353439817,), (1353439821,), (1353439824,), (1353440019,), (1353440038,), (1353440040,), (1353440044,), (1353440075,), (1353440107,), (1353440245,), (1353440248,), (1353440251,), (1353440254,), (1353440257,), (1353440356,), (1353440366,), (1353440381,), (1353440385,), (1353440389,), (1353440458,), (1353440461,), (1353440478,), (1353440489,), (1353440543,), (1353440590,), (1353440616,), (1353440642,), (1353441723,), (1353441750,), (1353441782,), (1353441836,), (1353441885,), (1353442465,), (1353442347,), (1353442374,), (1353442422,), (1353442920,), (1353442949,), (1353442977,), (1353443006,), (1353443018,), (1353443131,), (1353443138,), (1353443142,), (1353443146,), (1353443150,), (1353443173,), (1353443253,), (1353443256,), (1353443261,), (1353443288,), (1353443901,), (1353443954,), (1353444005,), (1353444066,), (1353444129,), (1353444192,), (1353444499,), (1353444528,), (1353444558,), (1353444594,), (1353445104,), (1353445132,), (1353445159,), (1353445194,), (1353445205,), (1353445211,), (1353445420,), (1353445424,), (1353445431,), (1353445442,), (1353445447,), (1353445510,), (1353445514,), (1353445516,), (1353445565,), (1353445618,), (1353445675,), (1353446189,), (1353446218,), (1353446269,), (1353446357,), (1353446586,), (1353446599,), (1353446604,), (1353446608,), (1353446657,), (1353446881,), (1353446912,), (1353446939,), (1353447187,), (1353448347,), (1353448172,), (1353448224,), (1353448277,), (1353449468,), (1353449517,), (1353449571,), (1353449608,), (1353449671,), (1353449772,), (1353450120,), (1353450197,), (1353450266,), (1353450340,), (1353450407,), (1353450446,), (1353450599,), (1353450648,), (1353450699,), (1353450777,), (1353450976,), (1353451034,), (1353451040,), (1353451046,), (1353451050,), (1353451081,), (1353451092,), (1353451095,), (1353451103,), (1353451224,), (1353451226,), (1353451229,), (1353451233,), (1353451237,), (1353451241,), (1353451267,), (1353451271,), (1353451274,), (1353451277,), (1353451280,), (1353451284,), (1353451304,), (1353451308,), (1353451311,), (1353451314,), (1353451349,), (1353451352,), (1353451354,), (1353451369,), (1353451372,), (1353451392,), (1353451396,), (1353451400,), (1353451403,), (1353451407,), (1353451440,), (1353451447,), (1353451450,), (1353451454,), (1353451491,), (1353451497,), (1353451502,), (1353451504,), (1353451508,), (1353451546,), (1353451549,), (1353451554,), (1353451559,), (1353451564,), (1353451749,), (1353451738,), (1353451740,), (1353451741,), (1353451777,), (1353451779,), (1353451782,), (1353451785,), (1353451787,), (1353451799,), (1353451817,), (1353451823,), (1353451826,), (1353451830,), (1353451860,), (1353451866,), (1353451870,), (1353451875,), (1353451877,), (1353451883,), (1353451924,), (1353451927,), (1353451930,), (1353451938,), (1353451953,), (1353451958,), (1353451991,), (1353451994,), (1353451996,), (1353451999,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'24042025': {'nb_upload': 29, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22396625]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1353451999, 1353451996, 1353451994, 1353451991, 1353451958, 1353451953, 1353451938, 1353451930, 1353451927, 1353451924] map_info['map_portfolio_photo'] : {22396625: [1353451999, 1353451996, 1353451994, 1353451991, 1353451958, 1353451953, 1353451938, 1353451930, 1353451927, 1353451924, 1353451883, 1353451877, 1353451875, 1353451870, 1353451866, 1353451860, 1353451830, 1353451826, 1353451823, 1353451817, 1353451799, 1353451787, 1353451785, 1353451782, 1353451779, 1353451777, 1353451741, 1353451740, 1353451738]} final : True mtd_id 4302 list_pids : [1353451999, 1353451996, 1353451994, 1353451991, 1353451958, 1353451953, 1353451938, 1353451930, 1353451927, 1353451924] Looping around the photos to save general results len do output : 1 /22396625Didn'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, '2758883') ('4302', '22396625', '1353451999', None, None, None, None, None, '2758883') ('4302', None, None, None, None, None, None, None, '2758883') ('4302', '22396625', '1353451996', None, None, None, None, None, '2758883') ('4302', None, None, None, None, None, None, None, '2758883') ('4302', '22396625', '1353451994', None, None, None, None, None, '2758883') ('4302', None, None, None, None, None, None, None, '2758883') ('4302', '22396625', '1353451991', None, None, None, None, None, '2758883') ('4302', None, None, None, None, None, None, None, '2758883') ('4302', '22396625', '1353451958', None, None, None, None, None, '2758883') ('4302', None, None, None, None, None, None, None, '2758883') ('4302', '22396625', '1353451953', None, None, None, None, None, '2758883') ('4302', None, None, None, None, None, None, None, '2758883') ('4302', '22396625', '1353451938', None, None, None, None, None, '2758883') ('4302', None, None, None, None, None, None, None, '2758883') ('4302', '22396625', '1353451930', None, None, None, None, None, '2758883') ('4302', None, None, None, None, None, None, None, '2758883') ('4302', '22396625', '1353451927', None, None, None, None, None, '2758883') ('4302', None, None, None, None, None, None, None, '2758883') ('4302', '22396625', '1353451924', None, None, None, None, None, '2758883') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22396625', 'None', None, None, None, None, '2758883'), ('4302', '22396625', '1353451999', None, None, None, None, None, '2758883'), ('4302', '22396625', '1353451996', None, None, None, None, None, '2758883'), ('4302', '22396625', '1353451994', None, None, None, None, None, '2758883'), ('4302', '22396625', '1353451991', None, None, None, None, None, '2758883'), ('4302', '22396625', '1353451958', None, None, None, None, None, '2758883'), ('4302', '22396625', '1353451953', None, None, None, None, None, '2758883'), ('4302', '22396625', '1353451938', None, None, None, None, None, '2758883'), ('4302', '22396625', '1353451930', None, None, None, None, None, '2758883'), ('4302', '22396625', '1353451927', None, None, None, None, None, '2758883'), ('4302', '22396625', '1353451924', None, None, None, None, None, '2758883')] time used for this insertion : 0.012970685958862305 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.34297919273376465 time spend to save output : 0.013190507888793945 total time spend for step 5 : 0.3561697006225586 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 (2758883) 2.29user 2.45system 0:08.63elapsed 54%CPU (0avgtext+0avgdata 159352maxresident)k 46896inputs+9376outputs (207major+74358minor)pagefaults 0swaps