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 : 3141 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 (2981135) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2981135) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23432187 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2981135'] with mtr_portfolio_ids : ['23432187'] and first list_photo_ids : [] new path : /proc/3141/ Name: python3 Umask: 0002 State: R (running) Tgid: 3141 Ngid: 0 Pid: 3141 PPid: 3140 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3141 NSpid: 3141 NSpgid: 4192721 NSsid: 4192721 VmPeak: 1107324 kB VmSize: 1107324 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99528 kB VmRSS: 99528 kB RssAnon: 60216 kB RssFile: 39312 kB RssShmem: 0 kB VmData: 866072 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 596 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: 53 nonvoluntary_ctxt_switches: 178 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3141', 'Ngid': '0', 'Pid': '3141', 'PPid': '3140', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3141', 'NSpid': '3141', 'NSpgid': '4192721', 'NSsid': '4192721', 'VmPeak': '1107324 kB', 'VmSize': '1107324 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99528 kB', 'VmRSS': '99528 kB', 'RssAnon': '60216 kB', 'RssFile': '39312 kB', 'RssShmem': '0 kB', 'VmData': '866072 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '596 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': '53', 'nonvoluntary_ctxt_switches': '178'} ('datou_batch_current', '3141', '1107324', '0', '1107324', '866072', '99528', b'', 'marlene', '2981135') 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 (23432187) 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 (2981135 ) ) 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 (23432187) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1361577818, 'portfolio_id': 23432187}, {'photo_id': 1361577816, 'portfolio_id': 23432187}, {'photo_id': 1361577814, 'portfolio_id': 23432187}, {'photo_id': 1361577812, 'portfolio_id': 23432187}, {'photo_id': 1361577809, 'portfolio_id': 23432187}, {'photo_id': 1361577790, 'portfolio_id': 23432187}, {'photo_id': 1361577789, 'portfolio_id': 23432187}, {'photo_id': 1361577787, 'portfolio_id': 23432187}, {'photo_id': 1361577771, 'portfolio_id': 23432187}, {'photo_id': 1361577770, 'portfolio_id': 23432187}, {'photo_id': 1361577769, 'portfolio_id': 23432187}, {'photo_id': 1361577768, 'portfolio_id': 23432187}, {'photo_id': 1361577767, 'portfolio_id': 23432187}, {'photo_id': 1361577765, 'portfolio_id': 23432187}, {'photo_id': 1361577752, 'portfolio_id': 23432187}, {'photo_id': 1361577750, 'portfolio_id': 23432187}, {'photo_id': 1361577748, 'portfolio_id': 23432187}, {'photo_id': 1361577745, 'portfolio_id': 23432187}, {'photo_id': 1361577742, 'portfolio_id': 23432187}, {'photo_id': 1361577726, 'portfolio_id': 23432187}, {'photo_id': 1361577714, 'portfolio_id': 23432187}, {'photo_id': 1361577701, 'portfolio_id': 23432187}, {'photo_id': 1361577698, 'portfolio_id': 23432187}, {'photo_id': 1361577676, 'portfolio_id': 23432187}, {'photo_id': 1361577675, 'portfolio_id': 23432187}, {'photo_id': 1361577673, 'portfolio_id': 23432187}, {'photo_id': 1361577671, 'portfolio_id': 23432187}, {'photo_id': 1361577669, 'portfolio_id': 23432187}] map_portfolio_id_photo_id: {23432187: [1361577818, 1361577816, 1361577814, 1361577812, 1361577809, 1361577790, 1361577789, 1361577787, 1361577771, 1361577770, 1361577769, 1361577768, 1361577767, 1361577765, 1361577752, 1361577750, 1361577748, 1361577745, 1361577742, 1361577726, 1361577714, 1361577701, 1361577698, 1361577676, 1361577675, 1361577673, 1361577671, 1361577669]} ##### 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.014866828918457031 #### 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 May 29 02:16:56 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 (23432187) 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 : 23432187 get user id for portfolio 23432187 get sub ptf for main ptf 23432187, type 3726 and hashtags ['kraft', 'cartonnette', 'autre_refus', 'plastique', 'Carton_brun', 'mal_croppe', 'environnement', 'metal', 'papier', 'Carton_gris', 'flou', 'Teint_Dans_La_Masse'] 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`=23432187 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','cartonnette','autre_refus','plastique','Carton_brun','mal_croppe','environnement','metal','papier','Carton_gris','flou','Teint_Dans_La_Masse')) 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`=23432187 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','cartonnette','autre_refus','plastique','Carton_brun','mal_croppe','environnement','metal','papier','Carton_gris','flou','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 23432187, 'sub_port_id': 23432193, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15635079, 'last_updated_at': datetime.datetime(2025, 5, 29, 2, 13, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 2, 13, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 2, 13, 56)}, 'papier': {'main_port_id': 23432187, 'sub_port_id': 23432194, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15635080, 'last_updated_at': datetime.datetime(2025, 5, 29, 2, 13, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 2, 13, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 2, 13, 56)}, 'metal': {'main_port_id': 23432187, 'sub_port_id': 23432195, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15635081, 'last_updated_at': datetime.datetime(2025, 5, 29, 2, 13, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 2, 13, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 2, 13, 56)}, 'Carton_brun': {'main_port_id': 23432187, 'sub_port_id': 23432196, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15635082, 'last_updated_at': datetime.datetime(2025, 5, 29, 2, 13, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 2, 13, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 2, 13, 56)}, 'plastique': {'main_port_id': 23432187, 'sub_port_id': 23432197, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15635083, 'last_updated_at': datetime.datetime(2025, 5, 29, 2, 13, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 2, 13, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 2, 13, 56)}, 'cartonnette': {'main_port_id': 23432187, 'sub_port_id': 23432198, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15635084, 'last_updated_at': datetime.datetime(2025, 5, 29, 2, 13, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 2, 13, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 2, 13, 56)}, 'flou': {'main_port_id': 23432187, 'sub_port_id': 23432199, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15635085, 'last_updated_at': datetime.datetime(2025, 5, 29, 2, 13, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 2, 13, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 2, 13, 56)}, 'kraft': {'main_port_id': 23432187, 'sub_port_id': 23432200, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15635086, 'last_updated_at': datetime.datetime(2025, 5, 29, 2, 13, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 2, 13, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 2, 13, 56)}, 'autre_refus': {'main_port_id': 23432187, 'sub_port_id': 23432201, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15635087, 'last_updated_at': datetime.datetime(2025, 5, 29, 2, 13, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 2, 13, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 2, 13, 56)}, 'Teint_Dans_La_Masse': {'main_port_id': 23432187, 'sub_port_id': 23432202, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15635088, 'last_updated_at': datetime.datetime(2025, 5, 29, 2, 13, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 2, 13, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 2, 13, 56)}, 'Carton_gris': {'main_port_id': 23432187, 'sub_port_id': 23432203, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15635089, 'last_updated_at': datetime.datetime(2025, 5, 29, 2, 13, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 2, 13, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 2, 13, 56)}, 'mal_croppe': {'main_port_id': 23432187, 'sub_port_id': 23432204, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15635090, 'last_updated_at': datetime.datetime(2025, 5, 29, 2, 13, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 2, 13, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 2, 13, 56)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23432193 , 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=23432187 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 (23432193) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23432187) result : ((1361577669,), (1361577671,), (1361577673,), (1361577675,), (1361577676,), (1361577698,), (1361577701,), (1361577714,), (1361577726,), (1361577742,), (1361577745,), (1361577748,), (1361577750,), (1361577752,), (1361577765,), (1361577767,), (1361577768,), (1361577769,), (1361577770,), (1361577771,), (1361577787,), (1361577789,), (1361577790,), (1361577809,), (1361577812,), (1361577814,), (1361577816,), (1361577818,)) 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 23432194 , 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=23432187 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 (23432194) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23432187) result : ((1361577669,), (1361577671,), (1361577673,), (1361577675,), (1361577676,), (1361577698,), (1361577701,), (1361577714,), (1361577726,), (1361577742,), (1361577745,), (1361577748,), (1361577750,), (1361577752,), (1361577765,), (1361577767,), (1361577768,), (1361577769,), (1361577770,), (1361577771,), (1361577787,), (1361577789,), (1361577790,), (1361577809,), (1361577812,), (1361577814,), (1361577816,), (1361577818,)) 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 23432195 , 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=23432187 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 (23432195) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23432187) result : ((1361577669,), (1361577671,), (1361577673,), (1361577675,), (1361577676,), (1361577698,), (1361577701,), (1361577714,), (1361577726,), (1361577742,), (1361577745,), (1361577748,), (1361577750,), (1361577752,), (1361577765,), (1361577767,), (1361577768,), (1361577769,), (1361577770,), (1361577771,), (1361577787,), (1361577789,), (1361577790,), (1361577809,), (1361577812,), (1361577814,), (1361577816,), (1361577818,)) 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 23432196 , 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=23432187 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 (23432196) result : ((1361577810,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23432187) result : ((1361577669,), (1361577671,), (1361577673,), (1361577675,), (1361577676,), (1361577698,), (1361577701,), (1361577714,), (1361577726,), (1361577742,), (1361577745,), (1361577748,), (1361577750,), (1361577752,), (1361577765,), (1361577767,), (1361577768,), (1361577769,), (1361577770,), (1361577771,), (1361577787,), (1361577789,), (1361577790,), (1361577809,), (1361577812,), (1361577814,), (1361577816,), (1361577818,)) 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 23432197 , 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=23432187 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 (23432197) result : ((1361577811,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23432187) result : ((1361577669,), (1361577671,), (1361577673,), (1361577675,), (1361577676,), (1361577698,), (1361577701,), (1361577714,), (1361577726,), (1361577742,), (1361577745,), (1361577748,), (1361577750,), (1361577752,), (1361577765,), (1361577767,), (1361577768,), (1361577769,), (1361577770,), (1361577771,), (1361577787,), (1361577789,), (1361577790,), (1361577809,), (1361577812,), (1361577814,), (1361577816,), (1361577818,)) 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 23432198 , 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=23432187 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 (23432198) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23432187) result : ((1361577669,), (1361577671,), (1361577673,), (1361577675,), (1361577676,), (1361577698,), (1361577701,), (1361577714,), (1361577726,), (1361577742,), (1361577745,), (1361577748,), (1361577750,), (1361577752,), (1361577765,), (1361577767,), (1361577768,), (1361577769,), (1361577770,), (1361577771,), (1361577787,), (1361577789,), (1361577790,), (1361577809,), (1361577812,), (1361577814,), (1361577816,), (1361577818,)) 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 23432199 , 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=23432187 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 (23432199) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23432187) result : ((1361577669,), (1361577671,), (1361577673,), (1361577675,), (1361577676,), (1361577698,), (1361577701,), (1361577714,), (1361577726,), (1361577742,), (1361577745,), (1361577748,), (1361577750,), (1361577752,), (1361577765,), (1361577767,), (1361577768,), (1361577769,), (1361577770,), (1361577771,), (1361577787,), (1361577789,), (1361577790,), (1361577809,), (1361577812,), (1361577814,), (1361577816,), (1361577818,)) 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 23432200 , 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=23432187 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 (23432200) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23432187) result : ((1361577669,), (1361577671,), (1361577673,), (1361577675,), (1361577676,), (1361577698,), (1361577701,), (1361577714,), (1361577726,), (1361577742,), (1361577745,), (1361577748,), (1361577750,), (1361577752,), (1361577765,), (1361577767,), (1361577768,), (1361577769,), (1361577770,), (1361577771,), (1361577787,), (1361577789,), (1361577790,), (1361577809,), (1361577812,), (1361577814,), (1361577816,), (1361577818,)) 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 23432201 , 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=23432187 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 (23432201) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23432187) result : ((1361577669,), (1361577671,), (1361577673,), (1361577675,), (1361577676,), (1361577698,), (1361577701,), (1361577714,), (1361577726,), (1361577742,), (1361577745,), (1361577748,), (1361577750,), (1361577752,), (1361577765,), (1361577767,), (1361577768,), (1361577769,), (1361577770,), (1361577771,), (1361577787,), (1361577789,), (1361577790,), (1361577809,), (1361577812,), (1361577814,), (1361577816,), (1361577818,)) 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 23432202 , 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=23432187 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 (23432202) result : ((1361577838,), (1361577839,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23432187) result : ((1361577669,), (1361577671,), (1361577673,), (1361577675,), (1361577676,), (1361577698,), (1361577701,), (1361577714,), (1361577726,), (1361577742,), (1361577745,), (1361577748,), (1361577750,), (1361577752,), (1361577765,), (1361577767,), (1361577768,), (1361577769,), (1361577770,), (1361577771,), (1361577787,), (1361577789,), (1361577790,), (1361577809,), (1361577812,), (1361577814,), (1361577816,), (1361577818,)) 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 23432203 , 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=23432187 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 (23432203) result : ((1361577842,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23432187) result : ((1361577669,), (1361577671,), (1361577673,), (1361577675,), (1361577676,), (1361577698,), (1361577701,), (1361577714,), (1361577726,), (1361577742,), (1361577745,), (1361577748,), (1361577750,), (1361577752,), (1361577765,), (1361577767,), (1361577768,), (1361577769,), (1361577770,), (1361577771,), (1361577787,), (1361577789,), (1361577790,), (1361577809,), (1361577812,), (1361577814,), (1361577816,), (1361577818,)) 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 23432204 , 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=23432187 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 (23432204) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23432187) result : ((1361577669,), (1361577671,), (1361577673,), (1361577675,), (1361577676,), (1361577698,), (1361577701,), (1361577714,), (1361577726,), (1361577742,), (1361577745,), (1361577748,), (1361577750,), (1361577752,), (1361577765,), (1361577767,), (1361577768,), (1361577769,), (1361577770,), (1361577771,), (1361577787,), (1361577789,), (1361577790,), (1361577809,), (1361577812,), (1361577814,), (1361577816,), (1361577818,)) 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`=23432187 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','cartonnette','autre_refus','plastique','Carton_brun','mal_croppe','environnement','metal','papier','Carton_gris','flou','Teint_Dans_La_Masse')) 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`=23432187 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','cartonnette','autre_refus','plastique','Carton_brun','mal_croppe','environnement','metal','papier','Carton_gris','flou','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 23432187, 'sub_port_id': 23432205, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15635091, 'last_updated_at': datetime.datetime(2025, 5, 29, 2, 13, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 2, 13, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 2, 13, 57)}, 'papier': {'main_port_id': 23432187, 'sub_port_id': 23432206, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15635092, 'last_updated_at': datetime.datetime(2025, 5, 29, 2, 13, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 2, 13, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 2, 13, 57)}, 'metal': {'main_port_id': 23432187, 'sub_port_id': 23432207, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15635093, 'last_updated_at': datetime.datetime(2025, 5, 29, 2, 13, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 2, 13, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 2, 13, 57)}, 'Carton_brun': {'main_port_id': 23432187, 'sub_port_id': 23432208, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15635094, 'last_updated_at': datetime.datetime(2025, 5, 29, 2, 13, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 2, 13, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 2, 13, 57)}, 'plastique': {'main_port_id': 23432187, 'sub_port_id': 23432209, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15635095, 'last_updated_at': datetime.datetime(2025, 5, 29, 2, 13, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 2, 13, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 2, 13, 57)}, 'cartonnette': {'main_port_id': 23432187, 'sub_port_id': 23432210, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15635096, 'last_updated_at': datetime.datetime(2025, 5, 29, 2, 13, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 2, 13, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 2, 13, 57)}, 'flou': {'main_port_id': 23432187, 'sub_port_id': 23432211, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15635097, 'last_updated_at': datetime.datetime(2025, 5, 29, 2, 13, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 2, 13, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 2, 13, 57)}, 'kraft': {'main_port_id': 23432187, 'sub_port_id': 23432212, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15635098, 'last_updated_at': datetime.datetime(2025, 5, 29, 2, 13, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 2, 13, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 2, 13, 57)}, 'autre_refus': {'main_port_id': 23432187, 'sub_port_id': 23432213, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15635099, 'last_updated_at': datetime.datetime(2025, 5, 29, 2, 13, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 2, 13, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 2, 13, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 23432187, 'sub_port_id': 23432214, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15635100, 'last_updated_at': datetime.datetime(2025, 5, 29, 2, 13, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 2, 13, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 2, 13, 57)}, 'Carton_gris': {'main_port_id': 23432187, 'sub_port_id': 23432215, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15635101, 'last_updated_at': datetime.datetime(2025, 5, 29, 2, 13, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 2, 13, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 2, 13, 57)}, 'mal_croppe': {'main_port_id': 23432187, 'sub_port_id': 23432216, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15635102, 'last_updated_at': datetime.datetime(2025, 5, 29, 2, 13, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 2, 13, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 2, 13, 57)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23432205,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23432193 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23432206,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23432194 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23432207,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23432195 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23432208,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23432196 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23432209,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23432197 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23432210,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23432198 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23432211,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23432199 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23432212,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23432200 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23432213,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23432201 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23432214,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23432202 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23432215,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23432203 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23432216,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23432204 lien utilise dans velours : https://www.fotonower.com/velours/23432205,23432206,23432207,23432208,23432209,23432210,23432211,23432212,23432213,23432214,23432215,23432216?tags=environnement,papier,metal,Carton_brun,plastique,cartonnette,flou,kraft,autre_refus,Teint_Dans_La_Masse,Carton_gris,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23432187]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1361577818, 1361577816, 1361577814, 1361577812, 1361577809, 1361577790, 1361577789, 1361577787, 1361577771, 1361577770, 1361577769, 1361577768, 1361577767, 1361577765] map_info['map_portfolio_photo'] : {23432187: [1361577818, 1361577816, 1361577814, 1361577812, 1361577809, 1361577790, 1361577789, 1361577787, 1361577771, 1361577770, 1361577769, 1361577768, 1361577767, 1361577765, 1361577752, 1361577750, 1361577748, 1361577745, 1361577742, 1361577726, 1361577714, 1361577701, 1361577698, 1361577676, 1361577675, 1361577673, 1361577671, 1361577669]} final : False mtd_id 4302 list_pids : [1361577818, 1361577816, 1361577814, 1361577812, 1361577809, 1361577790, 1361577789, 1361577787, 1361577771, 1361577770, 1361577769, 1361577768, 1361577767, 1361577765] Looping around the photos to save general results len do output : 1 /23432187. 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, '2981135') ('4302', '23432187', '1361577818', None, None, None, None, None, '2981135') ('4302', None, None, None, None, None, None, None, '2981135') ('4302', '23432187', '1361577816', None, None, None, None, None, '2981135') ('4302', None, None, None, None, None, None, None, '2981135') ('4302', '23432187', '1361577814', None, None, None, None, None, '2981135') ('4302', None, None, None, None, None, None, None, '2981135') ('4302', '23432187', '1361577812', None, None, None, None, None, '2981135') ('4302', None, None, None, None, None, None, None, '2981135') ('4302', '23432187', '1361577809', None, None, None, None, None, '2981135') ('4302', None, None, None, None, None, None, None, '2981135') ('4302', '23432187', '1361577790', None, None, None, None, None, '2981135') ('4302', None, None, None, None, None, None, None, '2981135') ('4302', '23432187', '1361577789', None, None, None, None, None, '2981135') ('4302', None, None, None, None, None, None, None, '2981135') ('4302', '23432187', '1361577787', None, None, None, None, None, '2981135') ('4302', None, None, None, None, None, None, None, '2981135') ('4302', '23432187', '1361577771', None, None, None, None, None, '2981135') ('4302', None, None, None, None, None, None, None, '2981135') ('4302', '23432187', '1361577770', None, None, None, None, None, '2981135') ('4302', None, None, None, None, None, None, None, '2981135') ('4302', '23432187', '1361577769', None, None, None, None, None, '2981135') ('4302', None, None, None, None, None, None, None, '2981135') ('4302', '23432187', '1361577768', None, None, None, None, None, '2981135') ('4302', None, None, None, None, None, None, None, '2981135') ('4302', '23432187', '1361577767', None, None, None, None, None, '2981135') ('4302', None, None, None, None, None, None, None, '2981135') ('4302', '23432187', '1361577765', None, None, None, None, None, '2981135') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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, '23432187', "{'environnement': 23432193, 'papier': 23432194, 'metal': 23432195, 'Carton_brun': 23432196, 'plastique': 23432197, 'cartonnette': 23432198, 'flou': 23432199, 'kraft': 23432200, 'autre_refus': 23432201, 'Teint_Dans_La_Masse': 23432202, 'Carton_gris': 23432203, 'mal_croppe': 23432204}", None, None, None, None, '2981135'), ('4302', '23432187', '1361577818', None, None, None, None, None, '2981135'), ('4302', '23432187', '1361577816', None, None, None, None, None, '2981135'), ('4302', '23432187', '1361577814', None, None, None, None, None, '2981135'), ('4302', '23432187', '1361577812', None, None, None, None, None, '2981135'), ('4302', '23432187', '1361577809', None, None, None, None, None, '2981135'), ('4302', '23432187', '1361577790', None, None, None, None, None, '2981135'), ('4302', '23432187', '1361577789', None, None, None, None, None, '2981135'), ('4302', '23432187', '1361577787', None, None, None, None, None, '2981135'), ('4302', '23432187', '1361577771', None, None, None, None, None, '2981135'), ('4302', '23432187', '1361577770', None, None, None, None, None, '2981135'), ('4302', '23432187', '1361577769', None, None, None, None, None, '2981135'), ('4302', '23432187', '1361577768', None, None, None, None, None, '2981135'), ('4302', '23432187', '1361577767', None, None, None, None, None, '2981135'), ('4302', '23432187', '1361577765', None, None, None, None, None, '2981135')] time used for this insertion : 0.01764845848083496 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.40509033203125 time spend to save output : 0.0179746150970459 total time spend for step 1 : 1.423064947128296 step2:final Thu May 29 02:16:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23432187) 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 23432187 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1361577676,1361577675,1361577673,1361577671,1361577669,1361577726,1361577714,1361577701,1361577698,1361577752,1361577750,1361577748,1361577745,1361577742,1361577771,1361577770,1361577769,1361577768,1361577767,1361577765,1361577790,1361577789,1361577787,1361577818,1361577816,1361577814,1361577812,1361577809); 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([23432187]) Inside saveOutput : final : False verbose : True original output for save of step final : {1361577818: ('0.0574402480277912',), 1361577816: ('0.0574402480277912',), 1361577814: ('0.0574402480277912',), 1361577812: ('0.0574402480277912',), 1361577809: ('0.0574402480277912',), 1361577790: ('0.0574402480277912',), 1361577789: ('0.0574402480277912',), 1361577787: ('0.0574402480277912',), 1361577771: ('0.0574402480277912',), 1361577770: ('0.0574402480277912',), 1361577769: ('0.0574402480277912',), 1361577768: ('0.0574402480277912',), 1361577767: ('0.0574402480277912',), 1361577765: ('0.0574402480277912',)} new output for save of step final : {1361577818: ('0.0574402480277912',), 1361577816: ('0.0574402480277912',), 1361577814: ('0.0574402480277912',), 1361577812: ('0.0574402480277912',), 1361577809: ('0.0574402480277912',), 1361577790: ('0.0574402480277912',), 1361577789: ('0.0574402480277912',), 1361577787: ('0.0574402480277912',), 1361577771: ('0.0574402480277912',), 1361577770: ('0.0574402480277912',), 1361577769: ('0.0574402480277912',), 1361577768: ('0.0574402480277912',), 1361577767: ('0.0574402480277912',), 1361577765: ('0.0574402480277912',)} [1361577818, 1361577816, 1361577814, 1361577812, 1361577809, 1361577790, 1361577789, 1361577787, 1361577771, 1361577770, 1361577769, 1361577768, 1361577767, 1361577765] map_info['map_portfolio_photo'] : {23432187: [1361577818, 1361577816, 1361577814, 1361577812, 1361577809, 1361577790, 1361577789, 1361577787, 1361577771, 1361577770, 1361577769, 1361577768, 1361577767, 1361577765, 1361577752, 1361577750, 1361577748, 1361577745, 1361577742, 1361577726, 1361577714, 1361577701, 1361577698, 1361577676, 1361577675, 1361577673, 1361577671, 1361577669]} final : False mtd_id 4302 list_pids : [1361577818, 1361577816, 1361577814, 1361577812, 1361577809, 1361577790, 1361577789, 1361577787, 1361577771, 1361577770, 1361577769, 1361577768, 1361577767, 1361577765] Looping around the photos to save general results len do output : 14 /1361577818.Didn't retrieve data . /1361577816.Didn't retrieve data . /1361577814.Didn't retrieve data . /1361577812.Didn't retrieve data . /1361577809.Didn't retrieve data . /1361577790.Didn't retrieve data . /1361577789.Didn't retrieve data . /1361577787.Didn't retrieve data . /1361577771.Didn't retrieve data . /1361577770.Didn't retrieve data . /1361577769.Didn't retrieve data . /1361577768.Didn't retrieve data . /1361577767.Didn't retrieve data . /1361577765.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, '2981135') ('4302', '23432187', '1361577818', None, None, None, None, None, '2981135') ('4302', None, None, None, None, None, None, None, '2981135') ('4302', '23432187', '1361577816', None, None, None, None, None, '2981135') ('4302', None, None, None, None, None, None, None, '2981135') ('4302', '23432187', '1361577814', None, None, None, None, None, '2981135') ('4302', None, None, None, None, None, None, None, '2981135') ('4302', '23432187', '1361577812', None, None, None, None, None, '2981135') ('4302', None, None, None, None, None, None, None, '2981135') ('4302', '23432187', '1361577809', None, None, None, None, None, '2981135') ('4302', None, None, None, None, None, None, None, '2981135') ('4302', '23432187', '1361577790', None, None, None, None, None, '2981135') ('4302', None, None, None, None, None, None, None, '2981135') ('4302', '23432187', '1361577789', None, None, None, None, None, '2981135') ('4302', None, None, None, None, None, None, None, '2981135') ('4302', '23432187', '1361577787', None, None, None, None, None, '2981135') ('4302', None, None, None, None, None, None, None, '2981135') ('4302', '23432187', '1361577771', None, None, None, None, None, '2981135') ('4302', None, None, None, None, None, None, None, '2981135') ('4302', '23432187', '1361577770', None, None, None, None, None, '2981135') ('4302', None, None, None, None, None, None, None, '2981135') ('4302', '23432187', '1361577769', None, None, None, None, None, '2981135') ('4302', None, None, None, None, None, None, None, '2981135') ('4302', '23432187', '1361577768', None, None, None, None, None, '2981135') ('4302', None, None, None, None, None, None, None, '2981135') ('4302', '23432187', '1361577767', None, None, None, None, None, '2981135') ('4302', None, None, None, None, None, None, None, '2981135') ('4302', '23432187', '1361577765', None, None, None, None, None, '2981135') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 42 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', '23432187', '1361577818', '0.0574402480277912', None, None, None, None, '2981135'), ('4302', '23432187', '1361577816', '0.0574402480277912', None, None, None, None, '2981135'), ('4302', '23432187', '1361577814', '0.0574402480277912', None, None, None, None, '2981135'), ('4302', '23432187', '1361577812', '0.0574402480277912', None, None, None, None, '2981135'), ('4302', '23432187', '1361577809', '0.0574402480277912', None, None, None, None, '2981135'), ('4302', '23432187', '1361577790', '0.0574402480277912', None, None, None, None, '2981135'), ('4302', '23432187', '1361577789', '0.0574402480277912', None, None, None, None, '2981135'), ('4302', '23432187', '1361577787', '0.0574402480277912', None, None, None, None, '2981135'), ('4302', '23432187', '1361577771', '0.0574402480277912', None, None, None, None, '2981135'), ('4302', '23432187', '1361577770', '0.0574402480277912', None, None, None, None, '2981135'), ('4302', '23432187', '1361577769', '0.0574402480277912', None, None, None, None, '2981135'), ('4302', '23432187', '1361577768', '0.0574402480277912', None, None, None, None, '2981135'), ('4302', '23432187', '1361577767', '0.0574402480277912', None, None, None, None, '2981135'), ('4302', '23432187', '1361577765', '0.0574402480277912', None, None, None, None, '2981135')] time used for this insertion : 0.014578104019165039 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06463742256164551 time spend to save output : 0.015239238739013672 total time spend for step 2 : 0.07987666130065918 step3:velours_tree Thu May 29 02:16:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {23432187: [{'environnement': 23432193, 'papier': 23432194, 'metal': 23432195, 'Carton_brun': 23432196, 'plastique': 23432197, 'cartonnette': 23432198, 'flou': 23432199, 'kraft': 23432200, 'autre_refus': 23432201, 'Teint_Dans_La_Masse': 23432202, 'Carton_gris': 23432203, 'mal_croppe': 23432204}]} input_args_next_step : {23432187: ()} output_args : {23432187: [{'environnement': 23432193, 'papier': 23432194, 'metal': 23432195, 'Carton_brun': 23432196, 'plastique': 23432197, 'cartonnette': 23432198, 'flou': 23432199, 'kraft': 23432200, 'autre_refus': 23432201, 'Teint_Dans_La_Masse': 23432202, 'Carton_gris': 23432203, 'mal_croppe': 23432204}]} args : 23432187 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 : ({'environnement': 23432193, 'papier': 23432194, 'metal': 23432195, 'Carton_brun': 23432196, 'plastique': 23432197, 'cartonnette': 23432198, 'flou': 23432199, 'kraft': 23432200, 'autre_refus': 23432201, 'Teint_Dans_La_Masse': 23432202, 'Carton_gris': 23432203, 'mal_croppe': 23432204},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23432187) 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([23432187]) 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.30431151390075684 time spend to save output : 5.4836273193359375e-05 total time spend for step 3 : 0.3043663501739502 step4:send_mail_cod Thu May 29 02:16:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1361577818: ('0.0574402480277912',), 1361577816: ('0.0574402480277912',), 1361577814: ('0.0574402480277912',), 1361577812: ('0.0574402480277912',), 1361577809: ('0.0574402480277912',), 1361577790: ('0.0574402480277912',), 1361577789: ('0.0574402480277912',), 1361577787: ('0.0574402480277912',), 1361577771: ('0.0574402480277912',), 1361577770: ('0.0574402480277912',), 1361577769: ('0.0574402480277912',), 1361577768: ('0.0574402480277912',), 1361577767: ('0.0574402480277912',), 1361577765: ('0.0574402480277912',)} input_args_next_step : {1361577818: ()} output_args : {1361577818: ('0.0574402480277912',), 1361577816: ('0.0574402480277912',), 1361577814: ('0.0574402480277912',), 1361577812: ('0.0574402480277912',), 1361577809: ('0.0574402480277912',), 1361577790: ('0.0574402480277912',), 1361577789: ('0.0574402480277912',), 1361577787: ('0.0574402480277912',), 1361577771: ('0.0574402480277912',), 1361577770: ('0.0574402480277912',), 1361577769: ('0.0574402480277912',), 1361577768: ('0.0574402480277912',), 1361577767: ('0.0574402480277912',), 1361577765: ('0.0574402480277912',)} args : 1361577818 depend.output_id : 0 input_args_next_step : {1361577818: ('0.0574402480277912',), 1361577816: ()} output_args : {1361577818: ('0.0574402480277912',), 1361577816: ('0.0574402480277912',), 1361577814: ('0.0574402480277912',), 1361577812: ('0.0574402480277912',), 1361577809: ('0.0574402480277912',), 1361577790: ('0.0574402480277912',), 1361577789: ('0.0574402480277912',), 1361577787: ('0.0574402480277912',), 1361577771: ('0.0574402480277912',), 1361577770: ('0.0574402480277912',), 1361577769: ('0.0574402480277912',), 1361577768: ('0.0574402480277912',), 1361577767: ('0.0574402480277912',), 1361577765: ('0.0574402480277912',)} args : 1361577816 depend.output_id : 0 input_args_next_step : {1361577818: ('0.0574402480277912',), 1361577816: ('0.0574402480277912',), 1361577814: ()} output_args : {1361577818: ('0.0574402480277912',), 1361577816: ('0.0574402480277912',), 1361577814: ('0.0574402480277912',), 1361577812: ('0.0574402480277912',), 1361577809: ('0.0574402480277912',), 1361577790: ('0.0574402480277912',), 1361577789: ('0.0574402480277912',), 1361577787: ('0.0574402480277912',), 1361577771: ('0.0574402480277912',), 1361577770: ('0.0574402480277912',), 1361577769: ('0.0574402480277912',), 1361577768: ('0.0574402480277912',), 1361577767: ('0.0574402480277912',), 1361577765: ('0.0574402480277912',)} args : 1361577814 depend.output_id : 0 input_args_next_step : {1361577818: ('0.0574402480277912',), 1361577816: ('0.0574402480277912',), 1361577814: ('0.0574402480277912',), 1361577812: ()} output_args : {1361577818: ('0.0574402480277912',), 1361577816: ('0.0574402480277912',), 1361577814: ('0.0574402480277912',), 1361577812: ('0.0574402480277912',), 1361577809: ('0.0574402480277912',), 1361577790: ('0.0574402480277912',), 1361577789: ('0.0574402480277912',), 1361577787: ('0.0574402480277912',), 1361577771: ('0.0574402480277912',), 1361577770: ('0.0574402480277912',), 1361577769: ('0.0574402480277912',), 1361577768: ('0.0574402480277912',), 1361577767: ('0.0574402480277912',), 1361577765: ('0.0574402480277912',)} args : 1361577812 depend.output_id : 0 input_args_next_step : {1361577818: ('0.0574402480277912',), 1361577816: ('0.0574402480277912',), 1361577814: ('0.0574402480277912',), 1361577812: ('0.0574402480277912',), 1361577809: ()} output_args : {1361577818: ('0.0574402480277912',), 1361577816: ('0.0574402480277912',), 1361577814: ('0.0574402480277912',), 1361577812: ('0.0574402480277912',), 1361577809: ('0.0574402480277912',), 1361577790: ('0.0574402480277912',), 1361577789: ('0.0574402480277912',), 1361577787: ('0.0574402480277912',), 1361577771: ('0.0574402480277912',), 1361577770: ('0.0574402480277912',), 1361577769: ('0.0574402480277912',), 1361577768: ('0.0574402480277912',), 1361577767: ('0.0574402480277912',), 1361577765: ('0.0574402480277912',)} args : 1361577809 depend.output_id : 0 input_args_next_step : {1361577818: ('0.0574402480277912',), 1361577816: ('0.0574402480277912',), 1361577814: ('0.0574402480277912',), 1361577812: ('0.0574402480277912',), 1361577809: ('0.0574402480277912',), 1361577790: ()} output_args : {1361577818: ('0.0574402480277912',), 1361577816: ('0.0574402480277912',), 1361577814: ('0.0574402480277912',), 1361577812: ('0.0574402480277912',), 1361577809: ('0.0574402480277912',), 1361577790: ('0.0574402480277912',), 1361577789: ('0.0574402480277912',), 1361577787: ('0.0574402480277912',), 1361577771: ('0.0574402480277912',), 1361577770: ('0.0574402480277912',), 1361577769: ('0.0574402480277912',), 1361577768: ('0.0574402480277912',), 1361577767: ('0.0574402480277912',), 1361577765: ('0.0574402480277912',)} args : 1361577790 depend.output_id : 0 input_args_next_step : {1361577818: ('0.0574402480277912',), 1361577816: ('0.0574402480277912',), 1361577814: ('0.0574402480277912',), 1361577812: ('0.0574402480277912',), 1361577809: ('0.0574402480277912',), 1361577790: ('0.0574402480277912',), 1361577789: ()} output_args : {1361577818: ('0.0574402480277912',), 1361577816: ('0.0574402480277912',), 1361577814: ('0.0574402480277912',), 1361577812: ('0.0574402480277912',), 1361577809: ('0.0574402480277912',), 1361577790: ('0.0574402480277912',), 1361577789: ('0.0574402480277912',), 1361577787: ('0.0574402480277912',), 1361577771: ('0.0574402480277912',), 1361577770: ('0.0574402480277912',), 1361577769: ('0.0574402480277912',), 1361577768: ('0.0574402480277912',), 1361577767: ('0.0574402480277912',), 1361577765: ('0.0574402480277912',)} args : 1361577789 depend.output_id : 0 input_args_next_step : {1361577818: ('0.0574402480277912',), 1361577816: ('0.0574402480277912',), 1361577814: ('0.0574402480277912',), 1361577812: ('0.0574402480277912',), 1361577809: ('0.0574402480277912',), 1361577790: ('0.0574402480277912',), 1361577789: ('0.0574402480277912',), 1361577787: ()} output_args : {1361577818: ('0.0574402480277912',), 1361577816: ('0.0574402480277912',), 1361577814: ('0.0574402480277912',), 1361577812: ('0.0574402480277912',), 1361577809: ('0.0574402480277912',), 1361577790: ('0.0574402480277912',), 1361577789: ('0.0574402480277912',), 1361577787: ('0.0574402480277912',), 1361577771: ('0.0574402480277912',), 1361577770: ('0.0574402480277912',), 1361577769: ('0.0574402480277912',), 1361577768: ('0.0574402480277912',), 1361577767: ('0.0574402480277912',), 1361577765: ('0.0574402480277912',)} args : 1361577787 depend.output_id : 0 input_args_next_step : {1361577818: ('0.0574402480277912',), 1361577816: ('0.0574402480277912',), 1361577814: ('0.0574402480277912',), 1361577812: ('0.0574402480277912',), 1361577809: ('0.0574402480277912',), 1361577790: ('0.0574402480277912',), 1361577789: ('0.0574402480277912',), 1361577787: ('0.0574402480277912',), 1361577771: ()} output_args : {1361577818: ('0.0574402480277912',), 1361577816: ('0.0574402480277912',), 1361577814: ('0.0574402480277912',), 1361577812: ('0.0574402480277912',), 1361577809: ('0.0574402480277912',), 1361577790: ('0.0574402480277912',), 1361577789: ('0.0574402480277912',), 1361577787: ('0.0574402480277912',), 1361577771: ('0.0574402480277912',), 1361577770: ('0.0574402480277912',), 1361577769: ('0.0574402480277912',), 1361577768: ('0.0574402480277912',), 1361577767: ('0.0574402480277912',), 1361577765: ('0.0574402480277912',)} args : 1361577771 depend.output_id : 0 input_args_next_step : {1361577818: ('0.0574402480277912',), 1361577816: ('0.0574402480277912',), 1361577814: ('0.0574402480277912',), 1361577812: ('0.0574402480277912',), 1361577809: ('0.0574402480277912',), 1361577790: ('0.0574402480277912',), 1361577789: ('0.0574402480277912',), 1361577787: ('0.0574402480277912',), 1361577771: ('0.0574402480277912',), 1361577770: ()} output_args : {1361577818: ('0.0574402480277912',), 1361577816: ('0.0574402480277912',), 1361577814: ('0.0574402480277912',), 1361577812: ('0.0574402480277912',), 1361577809: ('0.0574402480277912',), 1361577790: ('0.0574402480277912',), 1361577789: ('0.0574402480277912',), 1361577787: ('0.0574402480277912',), 1361577771: ('0.0574402480277912',), 1361577770: ('0.0574402480277912',), 1361577769: ('0.0574402480277912',), 1361577768: ('0.0574402480277912',), 1361577767: ('0.0574402480277912',), 1361577765: ('0.0574402480277912',)} args : 1361577770 depend.output_id : 0 input_args_next_step : {1361577818: ('0.0574402480277912',), 1361577816: ('0.0574402480277912',), 1361577814: ('0.0574402480277912',), 1361577812: ('0.0574402480277912',), 1361577809: ('0.0574402480277912',), 1361577790: ('0.0574402480277912',), 1361577789: ('0.0574402480277912',), 1361577787: ('0.0574402480277912',), 1361577771: ('0.0574402480277912',), 1361577770: ('0.0574402480277912',), 1361577769: ()} output_args : {1361577818: ('0.0574402480277912',), 1361577816: ('0.0574402480277912',), 1361577814: ('0.0574402480277912',), 1361577812: ('0.0574402480277912',), 1361577809: ('0.0574402480277912',), 1361577790: ('0.0574402480277912',), 1361577789: ('0.0574402480277912',), 1361577787: ('0.0574402480277912',), 1361577771: ('0.0574402480277912',), 1361577770: ('0.0574402480277912',), 1361577769: ('0.0574402480277912',), 1361577768: ('0.0574402480277912',), 1361577767: ('0.0574402480277912',), 1361577765: ('0.0574402480277912',)} args : 1361577769 depend.output_id : 0 input_args_next_step : {1361577818: ('0.0574402480277912',), 1361577816: ('0.0574402480277912',), 1361577814: ('0.0574402480277912',), 1361577812: ('0.0574402480277912',), 1361577809: ('0.0574402480277912',), 1361577790: ('0.0574402480277912',), 1361577789: ('0.0574402480277912',), 1361577787: ('0.0574402480277912',), 1361577771: ('0.0574402480277912',), 1361577770: ('0.0574402480277912',), 1361577769: ('0.0574402480277912',), 1361577768: ()} output_args : {1361577818: ('0.0574402480277912',), 1361577816: ('0.0574402480277912',), 1361577814: ('0.0574402480277912',), 1361577812: ('0.0574402480277912',), 1361577809: ('0.0574402480277912',), 1361577790: ('0.0574402480277912',), 1361577789: ('0.0574402480277912',), 1361577787: ('0.0574402480277912',), 1361577771: ('0.0574402480277912',), 1361577770: ('0.0574402480277912',), 1361577769: ('0.0574402480277912',), 1361577768: ('0.0574402480277912',), 1361577767: ('0.0574402480277912',), 1361577765: ('0.0574402480277912',)} args : 1361577768 depend.output_id : 0 input_args_next_step : {1361577818: ('0.0574402480277912',), 1361577816: ('0.0574402480277912',), 1361577814: ('0.0574402480277912',), 1361577812: ('0.0574402480277912',), 1361577809: ('0.0574402480277912',), 1361577790: ('0.0574402480277912',), 1361577789: ('0.0574402480277912',), 1361577787: ('0.0574402480277912',), 1361577771: ('0.0574402480277912',), 1361577770: ('0.0574402480277912',), 1361577769: ('0.0574402480277912',), 1361577768: ('0.0574402480277912',), 1361577767: ()} output_args : {1361577818: ('0.0574402480277912',), 1361577816: ('0.0574402480277912',), 1361577814: ('0.0574402480277912',), 1361577812: ('0.0574402480277912',), 1361577809: ('0.0574402480277912',), 1361577790: ('0.0574402480277912',), 1361577789: ('0.0574402480277912',), 1361577787: ('0.0574402480277912',), 1361577771: ('0.0574402480277912',), 1361577770: ('0.0574402480277912',), 1361577769: ('0.0574402480277912',), 1361577768: ('0.0574402480277912',), 1361577767: ('0.0574402480277912',), 1361577765: ('0.0574402480277912',)} args : 1361577767 depend.output_id : 0 input_args_next_step : {1361577818: ('0.0574402480277912',), 1361577816: ('0.0574402480277912',), 1361577814: ('0.0574402480277912',), 1361577812: ('0.0574402480277912',), 1361577809: ('0.0574402480277912',), 1361577790: ('0.0574402480277912',), 1361577789: ('0.0574402480277912',), 1361577787: ('0.0574402480277912',), 1361577771: ('0.0574402480277912',), 1361577770: ('0.0574402480277912',), 1361577769: ('0.0574402480277912',), 1361577768: ('0.0574402480277912',), 1361577767: ('0.0574402480277912',), 1361577765: ()} output_args : {1361577818: ('0.0574402480277912',), 1361577816: ('0.0574402480277912',), 1361577814: ('0.0574402480277912',), 1361577812: ('0.0574402480277912',), 1361577809: ('0.0574402480277912',), 1361577790: ('0.0574402480277912',), 1361577789: ('0.0574402480277912',), 1361577787: ('0.0574402480277912',), 1361577771: ('0.0574402480277912',), 1361577770: ('0.0574402480277912',), 1361577769: ('0.0574402480277912',), 1361577768: ('0.0574402480277912',), 1361577767: ('0.0574402480277912',), 1361577765: ('0.0574402480277912',)} args : 1361577765 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 : {23432187: [{'environnement': 23432193, 'papier': 23432194, 'metal': 23432195, 'Carton_brun': 23432196, 'plastique': 23432197, 'cartonnette': 23432198, 'flou': 23432199, 'kraft': 23432200, 'autre_refus': 23432201, 'Teint_Dans_La_Masse': 23432202, 'Carton_gris': 23432203, 'mal_croppe': 23432204}]} input_args_next_step : {1361577818: ('0.0574402480277912',), 1361577816: ('0.0574402480277912',), 1361577814: ('0.0574402480277912',), 1361577812: ('0.0574402480277912',), 1361577809: ('0.0574402480277912',), 1361577790: ('0.0574402480277912',), 1361577789: ('0.0574402480277912',), 1361577787: ('0.0574402480277912',), 1361577771: ('0.0574402480277912',), 1361577770: ('0.0574402480277912',), 1361577769: ('0.0574402480277912',), 1361577768: ('0.0574402480277912',), 1361577767: ('0.0574402480277912',), 1361577765: ('0.0574402480277912',), 23432187: ()} output_args : {23432187: [{'environnement': 23432193, 'papier': 23432194, 'metal': 23432195, 'Carton_brun': 23432196, 'plastique': 23432197, 'cartonnette': 23432198, 'flou': 23432199, 'kraft': 23432200, 'autre_refus': 23432201, 'Teint_Dans_La_Masse': 23432202, 'Carton_gris': 23432203, 'mal_croppe': 23432204}]} args : 23432187 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 :15, first value : ('0.0574402480277912',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23432187) 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 (1361577818,1361577816,1361577814,1361577812,1361577809,1361577790,1361577789,1361577787,1361577771,1361577770,1361577769,1361577768,1361577767,1361577765) Found this number of photos: 14 ##### Call download_photos : nb_thread : 5 begin to download photo : 1361577765 begin to download photo : 1361577769 begin to download photo : 1361577787 begin to download photo : 1361577809 begin to download photo : 1361577816 download finish for photo 1361577809 begin to download photo : 1361577812 download finish for photo 1361577787 begin to download photo : 1361577789 download finish for photo 1361577765 begin to download photo : 1361577767 download finish for photo 1361577769 begin to download photo : 1361577770 download finish for photo 1361577816 begin to download photo : 1361577818 download finish for photo 1361577789 begin to download photo : 1361577790 download finish for photo 1361577812 begin to download photo : 1361577814 download finish for photo 1361577767 begin to download photo : 1361577768 download finish for photo 1361577770 begin to download photo : 1361577771 download finish for photo 1361577818 download finish for photo 1361577790 download finish for photo 1361577814 download finish for photo 1361577771 download finish for photo 1361577768 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette234321951748477818/ length of list_filenames : 14 ; length of list_pids : 14 ; length of list_args : 14 results_Auto_P23432187_29-05-2025_02_16_58.pdf 23432195 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=23432195 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette234321951748477818 23432197 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=23432197 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361577811: '1748477725_2665506_1361577714_b1895c5fab588e4c1ede3b1a7528bf56_rle_crop_3814989985_0.png'} change filename to text .imagette234321971748477818/ imagette234321971748477818/1748477725_2665506_1361577714_b1895c5fab588e4c1ede3b1a7528bf56_rle_crop_3814989985_0.png.png imagette234321981748477818/ imagette234321991748477818/ imagette234322001748477818/ imagette234322011748477818/ imagette234322041748477818/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/29/bbe356974470c1c54cdcfa7fbbda01ce_47801938.png imagette234321971748477818 23432198 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=23432198 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette234321981748477818 23432199 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=23432199 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette234321991748477818 23432200 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=23432200 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette234322001748477818 23432201 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=23432201 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette234322011748477818 23432204 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=23432204 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette234322041748477818 23432196 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=23432196 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361577810: '1748477725_2665506_1361577752_7a2d9fb05b9472eb679e262b0e7e79d9_rle_crop_3814989976_0.png'} change filename to text .imagette234321961748477818/ imagette234321961748477818/1748477725_2665506_1361577752_7a2d9fb05b9472eb679e262b0e7e79d9_rle_crop_3814989976_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/29/c2accb294a55ed9f3e3aa758b5e9a39a_93041098.png imagette234321961748477818 23432202 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=23432202 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361577838: '1748477786_2669078_1361577742_18f7607e9424b07056b0678224d50214_rle_crop_3814990184_0.png', 1361577839: '1748477786_2669078_1361577742_18f7607e9424b07056b0678224d50214_rle_crop_3814990186_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/29/773262499b617315643022c2e73ea2dc_26311883.png change filename to text .imagette234322021748477818/ imagette234322021748477818/1748477786_2669078_1361577742_18f7607e9424b07056b0678224d50214_rle_crop_3814990186_0.png.png imagette234322021748477818/1748477786_2669078_1361577742_18f7607e9424b07056b0678224d50214_rle_crop_3814990184_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/29/6113ded1663bcbecf533d8252b173ef5_87361006.png imagette234322021748477818 23432203 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=23432203 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361577842: '1748477786_2669078_1361577742_18f7607e9424b07056b0678224d50214_rle_crop_3814990183_0.png'} change filename to text .imagette234322031748477818/ imagette234322031748477818/1748477786_2669078_1361577742_18f7607e9424b07056b0678224d50214_rle_crop_3814990183_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/29/78592df3cc62db01c5dfcf8d5a7939c2_10454342.png imagette234322031748477818 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=23432187 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/23432205,23432206,23432207,23432208,23432209,23432210,23432211,23432212,23432213,23432214,23432215,23432216?tags=environnement,papier,metal,Carton_brun,plastique,cartonnette,flou,kraft,autre_refus,Teint_Dans_La_Masse,Carton_gris,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1361577818] : ('0.0574402480277912',) no score found for photo 1361577818 We are sending mail with results at report@fotonower.com args[1361577816] : ('0.0574402480277912',) no score found for photo 1361577816 We are sending mail with results at report@fotonower.com args[1361577814] : ('0.0574402480277912',) no score found for photo 1361577814 We are sending mail with results at report@fotonower.com args[1361577812] : ('0.0574402480277912',) no score found for photo 1361577812 We are sending mail with results at report@fotonower.com args[1361577809] : ('0.0574402480277912',) no score found for photo 1361577809 We are sending mail with results at report@fotonower.com args[1361577790] : ('0.0574402480277912',) no score found for photo 1361577790 We are sending mail with results at report@fotonower.com args[1361577789] : ('0.0574402480277912',) no score found for photo 1361577789 We are sending mail with results at report@fotonower.com args[1361577787] : ('0.0574402480277912',) no score found for photo 1361577787 We are sending mail with results at report@fotonower.com args[1361577771] : ('0.0574402480277912',) no score found for photo 1361577771 We are sending mail with results at report@fotonower.com args[1361577770] : ('0.0574402480277912',) no score found for photo 1361577770 We are sending mail with results at report@fotonower.com args[1361577769] : ('0.0574402480277912',) no score found for photo 1361577769 We are sending mail with results at report@fotonower.com args[1361577768] : ('0.0574402480277912',) no score found for photo 1361577768 We are sending mail with results at report@fotonower.com args[1361577767] : ('0.0574402480277912',) no score found for photo 1361577767 We are sending mail with results at report@fotonower.com args[1361577765] : ('0.0574402480277912',) no score found for photo 1361577765 We are sending mail with results at report@fotonower.com refus_total : 0.0574402480277912 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=23432187 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_P23432187_29-05-2025_02_16_58.pdf results_Auto_P23432187_29-05-2025_02_16_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23432187_29-05-2025_02_16_58.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','23432187','results_Auto_P23432187_29-05-2025_02_16_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23432187_29-05-2025_02_16_58.pdf','pdf','','0.15','0.0574402480277912') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23432187]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1361577818, 1361577816, 1361577814, 1361577812, 1361577809, 1361577790, 1361577789, 1361577787, 1361577771, 1361577770, 1361577769, 1361577768, 1361577767, 1361577765] map_info['map_portfolio_photo'] : {23432187: [1361577818, 1361577816, 1361577814, 1361577812, 1361577809, 1361577790, 1361577789, 1361577787, 1361577771, 1361577770, 1361577769, 1361577768, 1361577767, 1361577765, 1361577752, 1361577750, 1361577748, 1361577745, 1361577742, 1361577726, 1361577714, 1361577701, 1361577698, 1361577676, 1361577675, 1361577673, 1361577671, 1361577669]} final : False mtd_id 4302 list_pids : [1361577818, 1361577816, 1361577814, 1361577812, 1361577809, 1361577790, 1361577789, 1361577787, 1361577771, 1361577770, 1361577769, 1361577768, 1361577767, 1361577765] 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, '2981135') ('4302', '23432187', '1361577818', None, None, None, None, None, '2981135') ('4302', None, None, None, None, None, None, None, '2981135') ('4302', '23432187', '1361577816', None, None, None, None, None, '2981135') ('4302', None, None, None, None, None, None, None, '2981135') ('4302', '23432187', '1361577814', None, None, None, None, None, '2981135') ('4302', None, None, None, None, None, None, None, '2981135') ('4302', '23432187', '1361577812', None, None, None, None, None, '2981135') ('4302', None, None, None, None, None, None, None, '2981135') ('4302', '23432187', '1361577809', None, None, None, None, None, '2981135') ('4302', None, None, None, None, None, None, None, '2981135') ('4302', '23432187', '1361577790', None, None, None, None, None, '2981135') ('4302', None, None, None, None, None, None, None, '2981135') ('4302', '23432187', '1361577789', None, None, None, None, None, '2981135') ('4302', None, None, None, None, None, None, None, '2981135') ('4302', '23432187', '1361577787', None, None, None, None, None, '2981135') ('4302', None, None, None, None, None, None, None, '2981135') ('4302', '23432187', '1361577771', None, None, None, None, None, '2981135') ('4302', None, None, None, None, None, None, None, '2981135') ('4302', '23432187', '1361577770', None, None, None, None, None, '2981135') ('4302', None, None, None, None, None, None, None, '2981135') ('4302', '23432187', '1361577769', None, None, None, None, None, '2981135') ('4302', None, None, None, None, None, None, None, '2981135') ('4302', '23432187', '1361577768', None, None, None, None, None, '2981135') ('4302', None, None, None, None, None, None, None, '2981135') ('4302', '23432187', '1361577767', None, None, None, None, None, '2981135') ('4302', None, None, None, None, None, None, None, '2981135') ('4302', '23432187', '1361577765', None, None, None, None, None, '2981135') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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', '23432187', '1361577818', None, None, None, None, None, '2981135'), ('4302', '23432187', '1361577816', None, None, None, None, None, '2981135'), ('4302', '23432187', '1361577814', None, None, None, None, None, '2981135'), ('4302', '23432187', '1361577812', None, None, None, None, None, '2981135'), ('4302', '23432187', '1361577809', None, None, None, None, None, '2981135'), ('4302', '23432187', '1361577790', None, None, None, None, None, '2981135'), ('4302', '23432187', '1361577789', None, None, None, None, None, '2981135'), ('4302', '23432187', '1361577787', None, None, None, None, None, '2981135'), ('4302', '23432187', '1361577771', None, None, None, None, None, '2981135'), ('4302', '23432187', '1361577770', None, None, None, None, None, '2981135'), ('4302', '23432187', '1361577769', None, None, None, None, None, '2981135'), ('4302', '23432187', '1361577768', None, None, None, None, None, '2981135'), ('4302', '23432187', '1361577767', None, None, None, None, None, '2981135'), ('4302', '23432187', '1361577765', None, None, None, None, None, '2981135')] time used for this insertion : 0.013641834259033203 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.094749927520752 time spend to save output : 0.013948678970336914 total time spend for step 4 : 2.108698606491089 step5:split_time_score Thu May 29 02:17: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 : ['23432187'] 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 : [('23432187',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23432187) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1361577816: {'path': 'temp/1748477818_3141_1361577816_c5630082858d21742dfa4109f1dcce76.jpg', 'extension': 'jpg'}, 1361577818: {'path': 'temp/1748477818_3141_1361577818_96543f139687cf0f2a4cf370e34dc9fe.jpg', 'extension': 'jpg'}, 1361577787: {'path': 'temp/1748477818_3141_1361577787_4a4bf24800bc4e5a48250945deac19e0.jpg', 'extension': 'jpg'}, 1361577789: {'path': 'temp/1748477818_3141_1361577789_6133f171a9368e3b78f8b972b5312b8a.jpg', 'extension': 'jpg'}, 1361577790: {'path': 'temp/1748477818_3141_1361577790_75e4ddbfb3edc918f9aa6ef5247bafb4.jpg', 'extension': 'jpg'}, 1361577809: {'path': 'temp/1748477818_3141_1361577809_0f250e4c97c885d16395857c82f563f6.jpg', 'extension': 'jpg'}, 1361577812: {'path': 'temp/1748477818_3141_1361577812_f36cc30365736a0ef94234796e702ac9.jpg', 'extension': 'jpg'}, 1361577814: {'path': 'temp/1748477818_3141_1361577814_6dc0342d067219c55b344559208857a6.jpg', 'extension': 'jpg'}, 1361577769: {'path': 'temp/1748477818_3141_1361577769_a0440b0fae7333925f4fe5ffdafa4111.jpg', 'extension': 'jpg'}, 1361577770: {'path': 'temp/1748477818_3141_1361577770_3e9d9ea60345bf3174a47642d993fc64.jpg', 'extension': 'jpg'}, 1361577771: {'path': 'temp/1748477818_3141_1361577771_af70ec9239181d3e18f1d8bd7e230f6f.jpg', 'extension': 'jpg'}, 1361577765: {'path': 'temp/1748477818_3141_1361577765_89208036d24c7c79b6677db057a27ed1.jpg', 'extension': 'jpg'}, 1361577767: {'path': 'temp/1748477818_3141_1361577767_cf0dbe1123ac7f7e04b3abb32caeb26c.jpg', 'extension': 'jpg'}, 1361577768: {'path': 'temp/1748477818_3141_1361577768_d23073ceb450bc78f9ac8f83d7476fdf.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 = 23432187; (('arc_en_ciel_jrm_live',), ('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 = 23432187 group by h (('01', 28),) 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=23432187 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 (23432187) 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 (23432187) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 29052025 23432187 Nombre de photos uploadées : 28 / 23040 (0%) 29052025 23432187 Nombre de photos taguées (types de déchets): 0 / 28 (0%) 29052025 23432187 Nombre de photos taguées (volume) : 0 / 28 (0%) [{'photo_id': 1361577676, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/29/c6740633792f990b08857f0ffd1c2363.jpg', 'username': None, 'uploaded_at': 1748477447, 'text': 'image_29052025_01_45_04_10148.jpg'}, {'photo_id': 1361577675, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/29/77c3c57cdfc20d46038c5a0f5d541758.jpg', 'username': None, 'uploaded_at': 1748477447, 'text': 'image_29052025_01_45_14_10252.jpg'}, {'photo_id': 1361577673, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/29/2b633ce2a2d45f31228395965b004d40.jpg', 'username': None, 'uploaded_at': 1748477447, 'text': 'image_29052025_01_45_25_10134.jpg'}, {'photo_id': 1361577671, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/29/8e9505bcaf4bc054071211d87579cccf.jpg', 'username': None, 'uploaded_at': 1748477447, 'text': 'image_29052025_01_45_35_10133.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ???????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0011837482452392578 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 23432187, '2025-05-29' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1844847,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.023794889450073242 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= 1844847 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1844847, 'dashboard_run_id': 1852398, 'mtr_portfolio_id': 23430334, 'dashboard_result_id': 11023480, '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_P23430334_29-05-2025_00_43_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23430347, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23430348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23430349, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23430350, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23430351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23430352, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23430353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23430354, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23430355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23430356, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23430357, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23430358, 'pht': 3726}}"}, {'dashboat_entry_day': 1844847, 'dashboard_run_id': 1852398, 'mtr_portfolio_id': 23430497, 'dashboard_result_id': 11023481, '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_P23430497_29-05-2025_00_56_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23430498, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23430499, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23430500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23430501, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23430502, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23430503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23430504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23430505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23430506, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23430507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23430508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23430509, 'pht': 3726}}"}, {'dashboat_entry_day': 1844847, 'dashboard_run_id': 1852398, 'mtr_portfolio_id': 23430732, 'dashboard_result_id': 11023482, '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_P23430732_29-05-2025_01_04_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23430745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23430746, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23430747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23430748, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23430749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23430750, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23430751, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23430752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23430753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23430754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23430755, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23430756, 'pht': 3726}}"}, {'dashboat_entry_day': 1844847, 'dashboard_run_id': 1852398, 'mtr_portfolio_id': 23431503, 'dashboard_result_id': 11023483, '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_P23431503_29-05-2025_01_56_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23431511, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23431512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23431513, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23431514, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23431515, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23431516, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23431517, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23431518, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23431519, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23431520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23431521, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23431522, 'pht': 3726}}"}, {'dashboat_entry_day': 1844847, 'dashboard_run_id': 1852398, 'mtr_portfolio_id': 23431787, 'dashboard_result_id': 11023484, '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_P23431787_29-05-2025_02_12_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23431813, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23431814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23431815, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23431816, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23431817, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23431818, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23431819, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23431820, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23431821, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23431822, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23431823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23431824, 'pht': 3726}}"}, {'dashboat_entry_day': 1844847, 'dashboard_run_id': 1852398, 'mtr_portfolio_id': 23432187, 'dashboard_result_id': 11023485, '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_P23432187_29-05-2025_02_13_58.pdf'}"}] 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 = 23430334 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': 2980549, 'mtr_portfolio_id': 23430334, 'created_at': datetime.datetime(2025, 5, 29, 0, 42, 59), 'result': '0.06281961672603695', 'result_long': None, 'result_double': None}] Qualite : 0.06281961672603695 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23430334 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23430334_29-05-2025_00_43_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23430334 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_P23430334_29-05-2025_00_43_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23430347, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23430348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23430349, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23430350, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23430351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23430352, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23430353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23430354, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23430355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23430356, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23430357, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23430358, 'pht': 3726}}" where mtr_portfolio_id = 23430334 and dashboard_run_id = 1852398 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`=23430334 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11023480, 0.06281961672603695, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23430334_29-05-2025_00_43_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23430347, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23430348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23430349, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23430350, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23430351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23430352, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23430353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23430354, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23430355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23430356, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23430357, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23430358, '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 = 23430497 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': 2980605, 'mtr_portfolio_id': 23430497, 'created_at': datetime.datetime(2025, 5, 29, 0, 56, 57), 'result': '0.038425853468165426', 'result_long': None, 'result_double': None}] Qualite : 0.038425853468165426 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23430497 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23430497_29-05-2025_00_56_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23430497 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_P23430497_29-05-2025_00_56_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23430498, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23430499, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23430500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23430501, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23430502, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23430503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23430504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23430505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23430506, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23430507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23430508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23430509, 'pht': 3726}}" where mtr_portfolio_id = 23430497 and dashboard_run_id = 1852398 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`=23430497 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11023481, 0.038425853468165426, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23430497_29-05-2025_00_56_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23430498, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23430499, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23430500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23430501, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23430502, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23430503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23430504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23430505, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23430506, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23430507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23430508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23430509, '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 = 23430732 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': 2980704, 'mtr_portfolio_id': 23430732, 'created_at': datetime.datetime(2025, 5, 29, 1, 4, 58), 'result': '0.08049469233491646', 'result_long': None, 'result_double': None}] Qualite : 0.08049469233491646 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23430732 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23430732_29-05-2025_01_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23430732 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_P23430732_29-05-2025_01_04_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23430745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23430746, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23430747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23430748, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23430749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23430750, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23430751, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23430752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23430753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23430754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23430755, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23430756, 'pht': 3726}}" where mtr_portfolio_id = 23430732 and dashboard_run_id = 1852398 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`=23430732 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11023482, 0.08049469233491646, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23430732_29-05-2025_01_04_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23430745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23430746, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23430747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23430748, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23430749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23430750, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23430751, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23430752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23430753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23430754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23430755, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23430756, '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 = 23431503 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': 2980946, 'mtr_portfolio_id': 23431503, 'created_at': datetime.datetime(2025, 5, 29, 1, 56, 57), 'result': '0.05205324032251061', 'result_long': None, 'result_double': None}] Qualite : 0.05205324032251061 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23431503 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23431503_29-05-2025_01_56_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23431503 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_P23431503_29-05-2025_01_56_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23431511, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23431512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23431513, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23431514, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23431515, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23431516, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23431517, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23431518, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23431519, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23431520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23431521, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23431522, 'pht': 3726}}" where mtr_portfolio_id = 23431503 and dashboard_run_id = 1852398 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`=23431503 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11023483, 0.05205324032251061, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23431503_29-05-2025_01_56_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23431511, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23431512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23431513, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23431514, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23431515, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23431516, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23431517, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23431518, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23431519, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23431520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23431521, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23431522, '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 = 23431787 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': 2981043, 'mtr_portfolio_id': 23431787, 'created_at': datetime.datetime(2025, 5, 29, 2, 12, 58), 'result': '0.06384799585236277', 'result_long': None, 'result_double': None}] Qualite : 0.06384799585236277 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23431787 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23431787_29-05-2025_02_12_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23431787 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_P23431787_29-05-2025_02_12_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23431813, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23431814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23431815, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23431816, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23431817, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23431818, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23431819, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23431820, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23431821, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23431822, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23431823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23431824, 'pht': 3726}}" where mtr_portfolio_id = 23431787 and dashboard_run_id = 1852399 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`=23431787 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11023484, 0.06384799585236277, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23431787_29-05-2025_02_12_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23431813, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23431814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23431815, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23431816, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23431817, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23431818, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23431819, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23431820, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23431821, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23431822, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23431823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23431824, '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 = 23432187 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': 2981135, 'mtr_portfolio_id': 23432187, 'created_at': datetime.datetime(2025, 5, 29, 2, 16, 57), 'result': '0.0574402480277912', 'result_long': None, 'result_double': None}] Qualite : 0.0574402480277912 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23432187 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23432187_29-05-2025_02_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23432187 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_P23432187_29-05-2025_02_16_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23432193, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23432194, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23432195, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23432196, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23432197, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23432198, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23432199, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23432200, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23432201, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23432202, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23432203, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23432204, 'pht': 3726}}" where mtr_portfolio_id = 23432187 and dashboard_run_id = 1852399 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`=23432187 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11023485, 0.0574402480277912, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23432187_29-05-2025_02_16_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23432193, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23432194, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23432195, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23432196, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23432197, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23432198, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23432199, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23432200, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23432201, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23432202, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23432203, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23432204, '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 (23430334,23430497,23430732,23431503,23431787,23432187) result : ((1361574231,), (1361574233,), (1361574235,), (1361574238,), (1361574257,), (1361574259,), (1361574261,), (1361574264,), (1361574267,), (1361574281,), (1361574283,), (1361574285,), (1361574287,), (1361574303,), (1361574307,), (1361574311,), (1361574315,), (1361574323,), (1361574334,), (1361574368,), (1361574371,), (1361574393,), (1361574461,), (1361574464,), (1361574467,), (1361574473,), (1361574478,), (1361574480,), (1361574499,), (1361574501,), (1361574503,), (1361574506,), (1361574530,), (1361574535,), (1361574538,), (1361574541,), (1361574545,), (1361574557,), (1361574560,), (1361574562,), (1361574564,), (1361574589,), (1361574590,), (1361574591,), (1361574593,), (1361574594,), (1361574617,), (1361574619,), (1361574646,), (1361574648,), (1361574649,), (1361574656,), (1361574661,), (1361574664,), (1361574684,), (1361574686,), (1361574688,), (1361574690,), (1361574712,), (1361574713,), (1361574715,), (1361574750,), (1361574751,), (1361574752,), (1361574753,), (1361574754,), (1361574780,), (1361574774,), (1361574808,), (1361574809,), (1361574810,), (1361574811,), (1361574812,), (1361574830,), (1361574831,), (1361574832,), (1361574856,), (1361574858,), (1361574860,), (1361574863,), (1361574864,), (1361574866,), (1361574892,), (1361574897,), (1361574898,), (1361574900,), (1361574902,), (1361574927,), (1361574930,), (1361574934,), (1361574936,), (1361574939,), (1361574941,), (1361574959,), (1361574962,), (1361574992,), (1361574993,), (1361574994,), (1361574996,), (1361574998,), (1361575001,), (1361575023,), (1361575025,), (1361575029,), (1361575056,), (1361575058,), (1361575061,), (1361575064,), (1361575068,), (1361575071,), (1361575091,), (1361575094,), (1361575096,), (1361575098,), (1361575101,), (1361575124,), (1361575125,), (1361575161,), (1361575163,), (1361575183,), (1361575184,), (1361575208,), (1361575209,), (1361575210,), (1361575212,), (1361575247,), (1361575236,), (1361575238,), (1361575241,), (1361575243,), (1361575245,), (1361575268,), (1361575269,), (1361575270,), (1361575298,), (1361575300,), (1361575302,), (1361575304,), (1361575305,), (1361575328,), (1361575329,), (1361575330,), (1361575331,), (1361575333,), (1361575335,), (1361575340,), (1361575341,), (1361575342,), (1361575475,), (1361575478,), (1361576632,), (1361576636,), (1361576639,), (1361576642,), (1361576659,), (1361576664,), (1361576668,), (1361576671,), (1361576700,), (1361576702,), (1361576704,), (1361576706,), (1361576730,), (1361576734,), (1361576738,), (1361576742,), (1361576768,), (1361576771,), (1361576812,), (1361576815,), (1361576818,), (1361576892,), (1361576895,), (1361576923,), (1361576925,), (1361576927,), (1361576929,), (1361576931,), (1361576961,), (1361576963,), (1361576966,), (1361576969,), (1361576973,), (1361576975,), (1361576996,), (1361577000,), (1361577003,), (1361577032,), (1361577036,), (1361577040,), (1361577043,), (1361577044,), (1361577063,), (1361577068,), (1361577076,), (1361577082,), (1361577085,), (1361577087,), (1361577107,), (1361577110,), (1361577113,), (1361577117,), (1361577119,), (1361577138,), (1361577140,), (1361577142,), (1361577146,), (1361577184,), (1361577173,), (1361577176,), (1361577179,), (1361577182,), (1361577206,), (1361577214,), (1361577218,), (1361577222,), (1361577224,), (1361577253,), (1361577256,), (1361577271,), (1361577277,), (1361577298,), (1361577300,), (1361577303,), (1361577305,), (1361577307,), (1361577311,), (1361577312,), (1361577313,), (1361577320,), (1361577322,), (1361577348,), (1361577353,), (1361577358,), (1361577384,), (1361577387,), (1361577389,), (1361577392,), (1361577394,), (1361577395,), (1361577420,), (1361577423,), (1361577426,), (1361577429,), (1361577445,), (1361577447,), (1361577449,), (1361577451,), (1361577468,), (1361577471,), (1361577474,), (1361577480,), (1361577506,), (1361577532,), (1361577535,), (1361577538,), (1361577564,), (1361577569,), (1361577576,), (1361577580,), (1361577584,), (1361577605,), (1361577609,), (1361577615,), (1361577641,), (1361577643,), (1361577646,), (1361577648,), (1361577650,), (1361577652,), (1361577677,), (1361577669,), (1361577671,), (1361577673,), (1361577675,), (1361577676,), (1361577698,), (1361577701,), (1361577714,), (1361577726,), (1361577742,), (1361577745,), (1361577748,), (1361577750,), (1361577752,), (1361577765,), (1361577767,), (1361577768,), (1361577769,), (1361577770,), (1361577771,), (1361577787,), (1361577789,), (1361577790,), (1361577809,), (1361577812,), (1361577814,), (1361577816,), (1361577818,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'29052025': {'nb_upload': 28, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23432187]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1361577818, 1361577816, 1361577814, 1361577812, 1361577809, 1361577790, 1361577789, 1361577787, 1361577771, 1361577770, 1361577769, 1361577768, 1361577767, 1361577765] map_info['map_portfolio_photo'] : {23432187: [1361577818, 1361577816, 1361577814, 1361577812, 1361577809, 1361577790, 1361577789, 1361577787, 1361577771, 1361577770, 1361577769, 1361577768, 1361577767, 1361577765, 1361577752, 1361577750, 1361577748, 1361577745, 1361577742, 1361577726, 1361577714, 1361577701, 1361577698, 1361577676, 1361577675, 1361577673, 1361577671, 1361577669]} final : True mtd_id 4302 list_pids : [1361577818, 1361577816, 1361577814, 1361577812, 1361577809, 1361577790, 1361577789, 1361577787, 1361577771, 1361577770, 1361577769, 1361577768, 1361577767, 1361577765] Looping around the photos to save general results len do output : 1 /23432187Didn'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, '2981135') ('4302', '23432187', '1361577818', None, None, None, None, None, '2981135') ('4302', None, None, None, None, None, None, None, '2981135') ('4302', '23432187', '1361577816', None, None, None, None, None, '2981135') ('4302', None, None, None, None, None, None, None, '2981135') ('4302', '23432187', '1361577814', None, None, None, None, None, '2981135') ('4302', None, None, None, None, None, None, None, '2981135') ('4302', '23432187', '1361577812', None, None, None, None, None, '2981135') ('4302', None, None, None, None, None, None, None, '2981135') ('4302', '23432187', '1361577809', None, None, None, None, None, '2981135') ('4302', None, None, None, None, None, None, None, '2981135') ('4302', '23432187', '1361577790', None, None, None, None, None, '2981135') ('4302', None, None, None, None, None, None, None, '2981135') ('4302', '23432187', '1361577789', None, None, None, None, None, '2981135') ('4302', None, None, None, None, None, None, None, '2981135') ('4302', '23432187', '1361577787', None, None, None, None, None, '2981135') ('4302', None, None, None, None, None, None, None, '2981135') ('4302', '23432187', '1361577771', None, None, None, None, None, '2981135') ('4302', None, None, None, None, None, None, None, '2981135') ('4302', '23432187', '1361577770', None, None, None, None, None, '2981135') ('4302', None, None, None, None, None, None, None, '2981135') ('4302', '23432187', '1361577769', None, None, None, None, None, '2981135') ('4302', None, None, None, None, None, None, None, '2981135') ('4302', '23432187', '1361577768', None, None, None, None, None, '2981135') ('4302', None, None, None, None, None, None, None, '2981135') ('4302', '23432187', '1361577767', None, None, None, None, None, '2981135') ('4302', None, None, None, None, None, None, None, '2981135') ('4302', '23432187', '1361577765', None, None, None, None, None, '2981135') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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, '23432187', 'None', None, None, None, None, '2981135'), ('4302', '23432187', '1361577818', None, None, None, None, None, '2981135'), ('4302', '23432187', '1361577816', None, None, None, None, None, '2981135'), ('4302', '23432187', '1361577814', None, None, None, None, None, '2981135'), ('4302', '23432187', '1361577812', None, None, None, None, None, '2981135'), ('4302', '23432187', '1361577809', None, None, None, None, None, '2981135'), ('4302', '23432187', '1361577790', None, None, None, None, None, '2981135'), ('4302', '23432187', '1361577789', None, None, None, None, None, '2981135'), ('4302', '23432187', '1361577787', None, None, None, None, None, '2981135'), ('4302', '23432187', '1361577771', None, None, None, None, None, '2981135'), ('4302', '23432187', '1361577770', None, None, None, None, None, '2981135'), ('4302', '23432187', '1361577769', None, None, None, None, None, '2981135'), ('4302', '23432187', '1361577768', None, None, None, None, None, '2981135'), ('4302', '23432187', '1361577767', None, None, None, None, None, '2981135'), ('4302', '23432187', '1361577765', None, None, None, None, None, '2981135')] time used for this insertion : 0.013441801071166992 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4410667419433594 time spend to save output : 0.0137939453125 total time spend for step 5 : 0.4548606872558594 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 (2981135) 2.10user 2.51system 0:06.15elapsed 74%CPU (0avgtext+0avgdata 168252maxresident)k 464inputs+9200outputs (9major+66524minor)pagefaults 0swaps