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 : 92941 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 (2981326) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2981326) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23432833 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2981326'] with mtr_portfolio_ids : ['23432833'] and first list_photo_ids : [] new path : /proc/92941/ Name: python3 Umask: 0002 State: R (running) Tgid: 92941 Ngid: 0 Pid: 92941 PPid: 92940 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 92941 NSpid: 92941 NSpgid: 90409 NSsid: 90409 VmPeak: 1107324 kB VmSize: 1107324 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99908 kB VmRSS: 99908 kB RssAnon: 60216 kB RssFile: 39692 kB RssShmem: 0 kB VmData: 866072 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 624 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: 55 nonvoluntary_ctxt_switches: 77 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '92941', 'Ngid': '0', 'Pid': '92941', 'PPid': '92940', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '92941', 'NSpid': '92941', 'NSpgid': '90409', 'NSsid': '90409', 'VmPeak': '1107324 kB', 'VmSize': '1107324 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99908 kB', 'VmRSS': '99908 kB', 'RssAnon': '60216 kB', 'RssFile': '39692 kB', 'RssShmem': '0 kB', 'VmData': '866072 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '624 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': '55', 'nonvoluntary_ctxt_switches': '77'} ('datou_batch_current', '92941', '1107324', '0', '1107324', '866072', '99908', b'', 'marlene', '2981326') 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 (23432833) 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 (2981326 ) ) 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 (23432833) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1361578832, 'portfolio_id': 23432833}, {'photo_id': 1361578831, 'portfolio_id': 23432833}, {'photo_id': 1361578829, 'portfolio_id': 23432833}, {'photo_id': 1361578827, 'portfolio_id': 23432833}, {'photo_id': 1361578825, 'portfolio_id': 23432833}, {'photo_id': 1361578821, 'portfolio_id': 23432833}, {'photo_id': 1361578793, 'portfolio_id': 23432833}, {'photo_id': 1361578786, 'portfolio_id': 23432833}, {'photo_id': 1361578780, 'portfolio_id': 23432833}, {'photo_id': 1361578761, 'portfolio_id': 23432833}, {'photo_id': 1361578759, 'portfolio_id': 23432833}, {'photo_id': 1361578756, 'portfolio_id': 23432833}, {'photo_id': 1361578754, 'portfolio_id': 23432833}, {'photo_id': 1361578752, 'portfolio_id': 23432833}, {'photo_id': 1361578750, 'portfolio_id': 23432833}, {'photo_id': 1361578732, 'portfolio_id': 23432833}, {'photo_id': 1361578730, 'portfolio_id': 23432833}, {'photo_id': 1361578728, 'portfolio_id': 23432833}, {'photo_id': 1361578726, 'portfolio_id': 23432833}, {'photo_id': 1361578721, 'portfolio_id': 23432833}, {'photo_id': 1361578689, 'portfolio_id': 23432833}, {'photo_id': 1361578684, 'portfolio_id': 23432833}, {'photo_id': 1361578682, 'portfolio_id': 23432833}, {'photo_id': 1361578668, 'portfolio_id': 23432833}, {'photo_id': 1361578666, 'portfolio_id': 23432833}, {'photo_id': 1361578663, 'portfolio_id': 23432833}, {'photo_id': 1361578662, 'portfolio_id': 23432833}, {'photo_id': 1361578661, 'portfolio_id': 23432833}, {'photo_id': 1361578660, 'portfolio_id': 23432833}, {'photo_id': 1361578639, 'portfolio_id': 23432833}, {'photo_id': 1361578636, 'portfolio_id': 23432833}, {'photo_id': 1361578633, 'portfolio_id': 23432833}, {'photo_id': 1361578611, 'portfolio_id': 23432833}, {'photo_id': 1361578609, 'portfolio_id': 23432833}, {'photo_id': 1361578608, 'portfolio_id': 23432833}, {'photo_id': 1361578602, 'portfolio_id': 23432833}, {'photo_id': 1361578597, 'portfolio_id': 23432833}] map_portfolio_id_photo_id: {23432833: [1361578832, 1361578831, 1361578829, 1361578827, 1361578825, 1361578821, 1361578793, 1361578786, 1361578780, 1361578761, 1361578759, 1361578756, 1361578754, 1361578752, 1361578750, 1361578732, 1361578730, 1361578728, 1361578726, 1361578721, 1361578689, 1361578684, 1361578682, 1361578668, 1361578666, 1361578663, 1361578662, 1361578661, 1361578660, 1361578639, 1361578636, 1361578633, 1361578611, 1361578609, 1361578608, 1361578602, 1361578597]} ##### 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.01524662971496582 #### 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:48:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23432833) 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 : 23432833 get user id for portfolio 23432833 get sub ptf for main ptf 23432833, type 3726 and hashtags ['plastique', 'papier', 'Carton_brun', 'environnement', 'mal_croppe', 'kraft', 'Teint_Dans_La_Masse', 'metal', 'flou', 'autre_refus', 'Carton_gris', 'cartonnette'] 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`=23432833 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','papier','Carton_brun','environnement','mal_croppe','kraft','Teint_Dans_La_Masse','metal','flou','autre_refus','Carton_gris','cartonnette')) 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`=23432833 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','papier','Carton_brun','environnement','mal_croppe','kraft','Teint_Dans_La_Masse','metal','flou','autre_refus','Carton_gris','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 23432833, 'sub_port_id': 23432848, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15635557, 'last_updated_at': datetime.datetime(2025, 5, 29, 2, 45, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 2, 45, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 2, 42, 26)}, 'mal_croppe': {'main_port_id': 23432833, 'sub_port_id': 23432849, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15635558, 'last_updated_at': datetime.datetime(2025, 5, 29, 2, 45, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 2, 45, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 2, 42, 26)}, 'kraft': {'main_port_id': 23432833, 'sub_port_id': 23432850, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15635559, 'last_updated_at': datetime.datetime(2025, 5, 29, 2, 45, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 2, 45, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 2, 42, 26)}, 'flou': {'main_port_id': 23432833, 'sub_port_id': 23432851, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15635560, 'last_updated_at': datetime.datetime(2025, 5, 29, 2, 45, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 2, 45, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 2, 42, 26)}, 'Teint_Dans_La_Masse': {'main_port_id': 23432833, 'sub_port_id': 23432852, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15635561, 'last_updated_at': datetime.datetime(2025, 5, 29, 2, 45, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 2, 45, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 2, 42, 26)}, 'cartonnette': {'main_port_id': 23432833, 'sub_port_id': 23432853, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15635562, 'last_updated_at': datetime.datetime(2025, 5, 29, 2, 45, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 2, 45, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 2, 42, 26)}, 'autre_refus': {'main_port_id': 23432833, 'sub_port_id': 23432854, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15635563, 'last_updated_at': datetime.datetime(2025, 5, 29, 2, 45, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 2, 45, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 2, 42, 26)}, 'papier': {'main_port_id': 23432833, 'sub_port_id': 23432855, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15635564, 'last_updated_at': datetime.datetime(2025, 5, 29, 2, 45, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 2, 45, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 2, 42, 26)}, 'Carton_gris': {'main_port_id': 23432833, 'sub_port_id': 23432856, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15635565, 'last_updated_at': datetime.datetime(2025, 5, 29, 2, 45, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 2, 45, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 2, 42, 26)}, 'metal': {'main_port_id': 23432833, 'sub_port_id': 23432857, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15635566, 'last_updated_at': datetime.datetime(2025, 5, 29, 2, 45, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 2, 45, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 2, 42, 26)}, 'Carton_brun': {'main_port_id': 23432833, 'sub_port_id': 23432858, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15635567, 'last_updated_at': datetime.datetime(2025, 5, 29, 2, 45, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 2, 45, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 2, 42, 26)}, 'environnement': {'main_port_id': 23432833, 'sub_port_id': 23432859, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15635568, 'last_updated_at': datetime.datetime(2025, 5, 29, 2, 45, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 2, 45, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 2, 42, 26)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23432848 , 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=23432833 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 (23432848) result : ((1361578704,), (1361578705,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23432833) result : ((1361578597,), (1361578602,), (1361578608,), (1361578609,), (1361578611,), (1361578633,), (1361578636,), (1361578639,), (1361578660,), (1361578661,), (1361578662,), (1361578663,), (1361578666,), (1361578668,), (1361578682,), (1361578684,), (1361578689,), (1361578721,), (1361578726,), (1361578728,), (1361578730,), (1361578732,), (1361578750,), (1361578752,), (1361578754,), (1361578756,), (1361578759,), (1361578761,), (1361578780,), (1361578786,), (1361578793,), (1361578821,), (1361578825,), (1361578827,), (1361578829,), (1361578831,), (1361578832,)) 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 23432849 , 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=23432833 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 (23432849) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23432833) result : ((1361578597,), (1361578602,), (1361578608,), (1361578609,), (1361578611,), (1361578633,), (1361578636,), (1361578639,), (1361578660,), (1361578661,), (1361578662,), (1361578663,), (1361578666,), (1361578668,), (1361578682,), (1361578684,), (1361578689,), (1361578721,), (1361578726,), (1361578728,), (1361578730,), (1361578732,), (1361578750,), (1361578752,), (1361578754,), (1361578756,), (1361578759,), (1361578761,), (1361578780,), (1361578786,), (1361578793,), (1361578821,), (1361578825,), (1361578827,), (1361578829,), (1361578831,), (1361578832,)) 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 23432850 , 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=23432833 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 (23432850) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23432833) result : ((1361578597,), (1361578602,), (1361578608,), (1361578609,), (1361578611,), (1361578633,), (1361578636,), (1361578639,), (1361578660,), (1361578661,), (1361578662,), (1361578663,), (1361578666,), (1361578668,), (1361578682,), (1361578684,), (1361578689,), (1361578721,), (1361578726,), (1361578728,), (1361578730,), (1361578732,), (1361578750,), (1361578752,), (1361578754,), (1361578756,), (1361578759,), (1361578761,), (1361578780,), (1361578786,), (1361578793,), (1361578821,), (1361578825,), (1361578827,), (1361578829,), (1361578831,), (1361578832,)) 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 23432851 , 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=23432833 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 (23432851) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23432833) result : ((1361578597,), (1361578602,), (1361578608,), (1361578609,), (1361578611,), (1361578633,), (1361578636,), (1361578639,), (1361578660,), (1361578661,), (1361578662,), (1361578663,), (1361578666,), (1361578668,), (1361578682,), (1361578684,), (1361578689,), (1361578721,), (1361578726,), (1361578728,), (1361578730,), (1361578732,), (1361578750,), (1361578752,), (1361578754,), (1361578756,), (1361578759,), (1361578761,), (1361578780,), (1361578786,), (1361578793,), (1361578821,), (1361578825,), (1361578827,), (1361578829,), (1361578831,), (1361578832,)) 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 23432852 , 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=23432833 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 (23432852) result : ((1361578686,), (1361578687,), (1361578688,), (1361578822,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23432833) result : ((1361578597,), (1361578602,), (1361578608,), (1361578609,), (1361578611,), (1361578633,), (1361578636,), (1361578639,), (1361578660,), (1361578661,), (1361578662,), (1361578663,), (1361578666,), (1361578668,), (1361578682,), (1361578684,), (1361578689,), (1361578721,), (1361578726,), (1361578728,), (1361578730,), (1361578732,), (1361578750,), (1361578752,), (1361578754,), (1361578756,), (1361578759,), (1361578761,), (1361578780,), (1361578786,), (1361578793,), (1361578821,), (1361578825,), (1361578827,), (1361578829,), (1361578831,), (1361578832,)) 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 23432853 , 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=23432833 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 (23432853) result : ((1361578696,), (1361578697,), (1361578698,), (1361578856,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23432833) result : ((1361578597,), (1361578602,), (1361578608,), (1361578609,), (1361578611,), (1361578633,), (1361578636,), (1361578639,), (1361578660,), (1361578661,), (1361578662,), (1361578663,), (1361578666,), (1361578668,), (1361578682,), (1361578684,), (1361578689,), (1361578721,), (1361578726,), (1361578728,), (1361578730,), (1361578732,), (1361578750,), (1361578752,), (1361578754,), (1361578756,), (1361578759,), (1361578761,), (1361578780,), (1361578786,), (1361578793,), (1361578821,), (1361578825,), (1361578827,), (1361578829,), (1361578831,), (1361578832,)) 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 23432854 , 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=23432833 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 (23432854) result : ((1361578823,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23432833) result : ((1361578597,), (1361578602,), (1361578608,), (1361578609,), (1361578611,), (1361578633,), (1361578636,), (1361578639,), (1361578660,), (1361578661,), (1361578662,), (1361578663,), (1361578666,), (1361578668,), (1361578682,), (1361578684,), (1361578689,), (1361578721,), (1361578726,), (1361578728,), (1361578730,), (1361578732,), (1361578750,), (1361578752,), (1361578754,), (1361578756,), (1361578759,), (1361578761,), (1361578780,), (1361578786,), (1361578793,), (1361578821,), (1361578825,), (1361578827,), (1361578829,), (1361578831,), (1361578832,)) 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 23432855 , 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=23432833 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 (23432855) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23432833) result : ((1361578597,), (1361578602,), (1361578608,), (1361578609,), (1361578611,), (1361578633,), (1361578636,), (1361578639,), (1361578660,), (1361578661,), (1361578662,), (1361578663,), (1361578666,), (1361578668,), (1361578682,), (1361578684,), (1361578689,), (1361578721,), (1361578726,), (1361578728,), (1361578730,), (1361578732,), (1361578750,), (1361578752,), (1361578754,), (1361578756,), (1361578759,), (1361578761,), (1361578780,), (1361578786,), (1361578793,), (1361578821,), (1361578825,), (1361578827,), (1361578829,), (1361578831,), (1361578832,)) 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 23432856 , 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=23432833 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 (23432856) result : ((1361578690,), (1361578691,), (1361578692,), (1361578693,), (1361578694,), (1361578850,), (1361578851,), (1361578852,), (1361578853,), (1361578854,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23432833) result : ((1361578597,), (1361578602,), (1361578608,), (1361578609,), (1361578611,), (1361578633,), (1361578636,), (1361578639,), (1361578660,), (1361578661,), (1361578662,), (1361578663,), (1361578666,), (1361578668,), (1361578682,), (1361578684,), (1361578689,), (1361578721,), (1361578726,), (1361578728,), (1361578730,), (1361578732,), (1361578750,), (1361578752,), (1361578754,), (1361578756,), (1361578759,), (1361578761,), (1361578780,), (1361578786,), (1361578793,), (1361578821,), (1361578825,), (1361578827,), (1361578829,), (1361578831,), (1361578832,)) 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 23432857 , 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=23432833 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 (23432857) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23432833) result : ((1361578597,), (1361578602,), (1361578608,), (1361578609,), (1361578611,), (1361578633,), (1361578636,), (1361578639,), (1361578660,), (1361578661,), (1361578662,), (1361578663,), (1361578666,), (1361578668,), (1361578682,), (1361578684,), (1361578689,), (1361578721,), (1361578726,), (1361578728,), (1361578730,), (1361578732,), (1361578750,), (1361578752,), (1361578754,), (1361578756,), (1361578759,), (1361578761,), (1361578780,), (1361578786,), (1361578793,), (1361578821,), (1361578825,), (1361578827,), (1361578829,), (1361578831,), (1361578832,)) 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 23432858 , 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=23432833 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 (23432858) result : ((1361578700,), (1361578701,), (1361578702,), (1361578703,), (1361578857,), (1361578858,), (1361578859,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23432833) result : ((1361578597,), (1361578602,), (1361578608,), (1361578609,), (1361578611,), (1361578633,), (1361578636,), (1361578639,), (1361578660,), (1361578661,), (1361578662,), (1361578663,), (1361578666,), (1361578668,), (1361578682,), (1361578684,), (1361578689,), (1361578721,), (1361578726,), (1361578728,), (1361578730,), (1361578732,), (1361578750,), (1361578752,), (1361578754,), (1361578756,), (1361578759,), (1361578761,), (1361578780,), (1361578786,), (1361578793,), (1361578821,), (1361578825,), (1361578827,), (1361578829,), (1361578831,), (1361578832,)) 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 23432859 , 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=23432833 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 (23432859) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23432833) result : ((1361578597,), (1361578602,), (1361578608,), (1361578609,), (1361578611,), (1361578633,), (1361578636,), (1361578639,), (1361578660,), (1361578661,), (1361578662,), (1361578663,), (1361578666,), (1361578668,), (1361578682,), (1361578684,), (1361578689,), (1361578721,), (1361578726,), (1361578728,), (1361578730,), (1361578732,), (1361578750,), (1361578752,), (1361578754,), (1361578756,), (1361578759,), (1361578761,), (1361578780,), (1361578786,), (1361578793,), (1361578821,), (1361578825,), (1361578827,), (1361578829,), (1361578831,), (1361578832,)) 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`=23432833 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','papier','Carton_brun','environnement','mal_croppe','kraft','Teint_Dans_La_Masse','metal','flou','autre_refus','Carton_gris','cartonnette')) 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`=23432833 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','papier','Carton_brun','environnement','mal_croppe','kraft','Teint_Dans_La_Masse','metal','flou','autre_refus','Carton_gris','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 23432833, 'sub_port_id': 23432861, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15635569, 'last_updated_at': datetime.datetime(2025, 5, 29, 2, 42, 32), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 2, 42, 32), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 2, 42, 32)}, 'mal_croppe': {'main_port_id': 23432833, 'sub_port_id': 23432862, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15635570, 'last_updated_at': datetime.datetime(2025, 5, 29, 2, 42, 32), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 2, 42, 32), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 2, 42, 32)}, 'kraft': {'main_port_id': 23432833, 'sub_port_id': 23432863, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15635571, 'last_updated_at': datetime.datetime(2025, 5, 29, 2, 42, 32), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 2, 42, 32), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 2, 42, 32)}, 'flou': {'main_port_id': 23432833, 'sub_port_id': 23432864, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15635572, 'last_updated_at': datetime.datetime(2025, 5, 29, 2, 42, 32), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 2, 42, 32), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 2, 42, 32)}, 'Teint_Dans_La_Masse': {'main_port_id': 23432833, 'sub_port_id': 23432865, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15635573, 'last_updated_at': datetime.datetime(2025, 5, 29, 2, 42, 32), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 2, 42, 32), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 2, 42, 32)}, 'cartonnette': {'main_port_id': 23432833, 'sub_port_id': 23432866, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15635574, 'last_updated_at': datetime.datetime(2025, 5, 29, 2, 42, 32), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 2, 42, 32), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 2, 42, 32)}, 'autre_refus': {'main_port_id': 23432833, 'sub_port_id': 23432867, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15635575, 'last_updated_at': datetime.datetime(2025, 5, 29, 2, 42, 32), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 2, 42, 32), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 2, 42, 32)}, 'papier': {'main_port_id': 23432833, 'sub_port_id': 23432868, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15635576, 'last_updated_at': datetime.datetime(2025, 5, 29, 2, 42, 32), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 2, 42, 32), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 2, 42, 32)}, 'Carton_gris': {'main_port_id': 23432833, 'sub_port_id': 23432869, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15635577, 'last_updated_at': datetime.datetime(2025, 5, 29, 2, 42, 32), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 2, 42, 32), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 2, 42, 32)}, 'metal': {'main_port_id': 23432833, 'sub_port_id': 23432870, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15635578, 'last_updated_at': datetime.datetime(2025, 5, 29, 2, 42, 32), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 2, 42, 32), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 2, 42, 32)}, 'Carton_brun': {'main_port_id': 23432833, 'sub_port_id': 23432871, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15635579, 'last_updated_at': datetime.datetime(2025, 5, 29, 2, 42, 32), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 2, 42, 32), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 2, 42, 32)}, 'environnement': {'main_port_id': 23432833, 'sub_port_id': 23432872, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15635580, 'last_updated_at': datetime.datetime(2025, 5, 29, 2, 45, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 29, 2, 45, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 29, 2, 42, 32)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23432861,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23432848 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23432862,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23432849 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23432863,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23432850 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23432864,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23432851 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23432865,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23432852 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23432866,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23432853 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23432867,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23432854 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23432868,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23432855 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23432869,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23432856 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23432870,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23432857 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23432871,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23432858 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23432872,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23432859 lien utilise dans velours : https://www.fotonower.com/velours/23432861,23432862,23432863,23432864,23432865,23432866,23432867,23432868,23432869,23432870,23432871,23432872?tags=plastique,mal_croppe,kraft,flou,Teint_Dans_La_Masse,cartonnette,autre_refus,papier,Carton_gris,metal,Carton_brun,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23432833]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1361578832, 1361578831, 1361578829, 1361578827, 1361578825, 1361578821, 1361578793, 1361578786, 1361578780, 1361578761, 1361578759, 1361578756, 1361578754, 1361578752, 1361578750] map_info['map_portfolio_photo'] : {23432833: [1361578832, 1361578831, 1361578829, 1361578827, 1361578825, 1361578821, 1361578793, 1361578786, 1361578780, 1361578761, 1361578759, 1361578756, 1361578754, 1361578752, 1361578750, 1361578732, 1361578730, 1361578728, 1361578726, 1361578721, 1361578689, 1361578684, 1361578682, 1361578668, 1361578666, 1361578663, 1361578662, 1361578661, 1361578660, 1361578639, 1361578636, 1361578633, 1361578611, 1361578609, 1361578608, 1361578602, 1361578597]} final : False mtd_id 4302 list_pids : [1361578832, 1361578831, 1361578829, 1361578827, 1361578825, 1361578821, 1361578793, 1361578786, 1361578780, 1361578761, 1361578759, 1361578756, 1361578754, 1361578752, 1361578750] Looping around the photos to save general results len do output : 1 /23432833. 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, '2981326') ('4302', '23432833', '1361578832', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578831', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578829', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578827', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578825', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578821', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578793', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578786', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578780', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578761', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578759', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578756', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578754', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578752', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578750', None, None, None, None, None, '2981326') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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, '23432833', "{'plastique': 23432848, 'mal_croppe': 23432849, 'kraft': 23432850, 'flou': 23432851, 'Teint_Dans_La_Masse': 23432852, 'cartonnette': 23432853, 'autre_refus': 23432854, 'papier': 23432855, 'Carton_gris': 23432856, 'metal': 23432857, 'Carton_brun': 23432858, 'environnement': 23432859}", None, None, None, None, '2981326'), ('4302', '23432833', '1361578832', None, None, None, None, None, '2981326'), ('4302', '23432833', '1361578831', None, None, None, None, None, '2981326'), ('4302', '23432833', '1361578829', None, None, None, None, None, '2981326'), ('4302', '23432833', '1361578827', None, None, None, None, None, '2981326'), ('4302', '23432833', '1361578825', None, None, None, None, None, '2981326'), ('4302', '23432833', '1361578821', None, None, None, None, None, '2981326'), ('4302', '23432833', '1361578793', None, None, None, None, None, '2981326'), ('4302', '23432833', '1361578786', None, None, None, None, None, '2981326'), ('4302', '23432833', '1361578780', None, None, None, None, None, '2981326'), ('4302', '23432833', '1361578761', None, None, None, None, None, '2981326'), ('4302', '23432833', '1361578759', None, None, None, None, None, '2981326'), ('4302', '23432833', '1361578756', None, None, None, None, None, '2981326'), ('4302', '23432833', '1361578754', None, None, None, None, None, '2981326'), ('4302', '23432833', '1361578752', None, None, None, None, None, '2981326'), ('4302', '23432833', '1361578750', None, None, None, None, None, '2981326')] time used for this insertion : 0.01723313331604004 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.3957750797271729 time spend to save output : 0.017525434494018555 total time spend for step 1 : 1.4133005142211914 step2:final Thu May 29 02:48:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23432833) 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 23432833 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1361578611,1361578609,1361578608,1361578602,1361578597,1361578639,1361578636,1361578633,1361578668,1361578666,1361578663,1361578662,1361578661,1361578660,1361578689,1361578684,1361578682,1361578732,1361578730,1361578728,1361578726,1361578721,1361578761,1361578759,1361578756,1361578754,1361578752,1361578750,1361578793,1361578786,1361578780,1361578832,1361578831,1361578829,1361578827,1361578825,1361578821); 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([23432833]) Inside saveOutput : final : False verbose : True original output for save of step final : {1361578832: ('0.05134003119064903',), 1361578831: ('0.05134003119064903',), 1361578829: ('0.05134003119064903',), 1361578827: ('0.05134003119064903',), 1361578825: ('0.05134003119064903',), 1361578821: ('0.05134003119064903',), 1361578793: ('0.05134003119064903',), 1361578786: ('0.05134003119064903',), 1361578780: ('0.05134003119064903',), 1361578761: ('0.05134003119064903',), 1361578759: ('0.05134003119064903',), 1361578756: ('0.05134003119064903',), 1361578754: ('0.05134003119064903',), 1361578752: ('0.05134003119064903',), 1361578750: ('0.05134003119064903',)} new output for save of step final : {1361578832: ('0.05134003119064903',), 1361578831: ('0.05134003119064903',), 1361578829: ('0.05134003119064903',), 1361578827: ('0.05134003119064903',), 1361578825: ('0.05134003119064903',), 1361578821: ('0.05134003119064903',), 1361578793: ('0.05134003119064903',), 1361578786: ('0.05134003119064903',), 1361578780: ('0.05134003119064903',), 1361578761: ('0.05134003119064903',), 1361578759: ('0.05134003119064903',), 1361578756: ('0.05134003119064903',), 1361578754: ('0.05134003119064903',), 1361578752: ('0.05134003119064903',), 1361578750: ('0.05134003119064903',)} [1361578832, 1361578831, 1361578829, 1361578827, 1361578825, 1361578821, 1361578793, 1361578786, 1361578780, 1361578761, 1361578759, 1361578756, 1361578754, 1361578752, 1361578750] map_info['map_portfolio_photo'] : {23432833: [1361578832, 1361578831, 1361578829, 1361578827, 1361578825, 1361578821, 1361578793, 1361578786, 1361578780, 1361578761, 1361578759, 1361578756, 1361578754, 1361578752, 1361578750, 1361578732, 1361578730, 1361578728, 1361578726, 1361578721, 1361578689, 1361578684, 1361578682, 1361578668, 1361578666, 1361578663, 1361578662, 1361578661, 1361578660, 1361578639, 1361578636, 1361578633, 1361578611, 1361578609, 1361578608, 1361578602, 1361578597]} final : False mtd_id 4302 list_pids : [1361578832, 1361578831, 1361578829, 1361578827, 1361578825, 1361578821, 1361578793, 1361578786, 1361578780, 1361578761, 1361578759, 1361578756, 1361578754, 1361578752, 1361578750] Looping around the photos to save general results len do output : 15 /1361578832.Didn't retrieve data . /1361578831.Didn't retrieve data . /1361578829.Didn't retrieve data . /1361578827.Didn't retrieve data . /1361578825.Didn't retrieve data . /1361578821.Didn't retrieve data . /1361578793.Didn't retrieve data . /1361578786.Didn't retrieve data . /1361578780.Didn't retrieve data . /1361578761.Didn't retrieve data . /1361578759.Didn't retrieve data . /1361578756.Didn't retrieve data . /1361578754.Didn't retrieve data . /1361578752.Didn't retrieve data . /1361578750.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, '2981326') ('4302', '23432833', '1361578832', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578831', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578829', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578827', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578825', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578821', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578793', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578786', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578780', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578761', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578759', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578756', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578754', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578752', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578750', None, None, None, None, None, '2981326') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 45 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', '23432833', '1361578832', '0.05134003119064903', None, None, None, None, '2981326'), ('4302', '23432833', '1361578831', '0.05134003119064903', None, None, None, None, '2981326'), ('4302', '23432833', '1361578829', '0.05134003119064903', None, None, None, None, '2981326'), ('4302', '23432833', '1361578827', '0.05134003119064903', None, None, None, None, '2981326'), ('4302', '23432833', '1361578825', '0.05134003119064903', None, None, None, None, '2981326'), ('4302', '23432833', '1361578821', '0.05134003119064903', None, None, None, None, '2981326'), ('4302', '23432833', '1361578793', '0.05134003119064903', None, None, None, None, '2981326'), ('4302', '23432833', '1361578786', '0.05134003119064903', None, None, None, None, '2981326'), ('4302', '23432833', '1361578780', '0.05134003119064903', None, None, None, None, '2981326'), ('4302', '23432833', '1361578761', '0.05134003119064903', None, None, None, None, '2981326'), ('4302', '23432833', '1361578759', '0.05134003119064903', None, None, None, None, '2981326'), ('4302', '23432833', '1361578756', '0.05134003119064903', None, None, None, None, '2981326'), ('4302', '23432833', '1361578754', '0.05134003119064903', None, None, None, None, '2981326'), ('4302', '23432833', '1361578752', '0.05134003119064903', None, None, None, None, '2981326'), ('4302', '23432833', '1361578750', '0.05134003119064903', None, None, None, None, '2981326')] time used for this insertion : 0.01437067985534668 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07063579559326172 time spend to save output : 0.014960289001464844 total time spend for step 2 : 0.08559608459472656 step3:velours_tree Thu May 29 02:48:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {23432833: [{'plastique': 23432848, 'mal_croppe': 23432849, 'kraft': 23432850, 'flou': 23432851, 'Teint_Dans_La_Masse': 23432852, 'cartonnette': 23432853, 'autre_refus': 23432854, 'papier': 23432855, 'Carton_gris': 23432856, 'metal': 23432857, 'Carton_brun': 23432858, 'environnement': 23432859}]} input_args_next_step : {23432833: ()} output_args : {23432833: [{'plastique': 23432848, 'mal_croppe': 23432849, 'kraft': 23432850, 'flou': 23432851, 'Teint_Dans_La_Masse': 23432852, 'cartonnette': 23432853, 'autre_refus': 23432854, 'papier': 23432855, 'Carton_gris': 23432856, 'metal': 23432857, 'Carton_brun': 23432858, 'environnement': 23432859}]} args : 23432833 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 : ({'plastique': 23432848, 'mal_croppe': 23432849, 'kraft': 23432850, 'flou': 23432851, 'Teint_Dans_La_Masse': 23432852, 'cartonnette': 23432853, 'autre_refus': 23432854, 'papier': 23432855, 'Carton_gris': 23432856, 'metal': 23432857, 'Carton_brun': 23432858, 'environnement': 23432859},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23432833) 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([23432833]) 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.33747291564941406 time spend to save output : 5.364418029785156e-05 total time spend for step 3 : 0.3375265598297119 step4:send_mail_cod Thu May 29 02:49:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1361578832: ('0.05134003119064903',), 1361578831: ('0.05134003119064903',), 1361578829: ('0.05134003119064903',), 1361578827: ('0.05134003119064903',), 1361578825: ('0.05134003119064903',), 1361578821: ('0.05134003119064903',), 1361578793: ('0.05134003119064903',), 1361578786: ('0.05134003119064903',), 1361578780: ('0.05134003119064903',), 1361578761: ('0.05134003119064903',), 1361578759: ('0.05134003119064903',), 1361578756: ('0.05134003119064903',), 1361578754: ('0.05134003119064903',), 1361578752: ('0.05134003119064903',), 1361578750: ('0.05134003119064903',)} input_args_next_step : {1361578832: ()} output_args : {1361578832: ('0.05134003119064903',), 1361578831: ('0.05134003119064903',), 1361578829: ('0.05134003119064903',), 1361578827: ('0.05134003119064903',), 1361578825: ('0.05134003119064903',), 1361578821: ('0.05134003119064903',), 1361578793: ('0.05134003119064903',), 1361578786: ('0.05134003119064903',), 1361578780: ('0.05134003119064903',), 1361578761: ('0.05134003119064903',), 1361578759: ('0.05134003119064903',), 1361578756: ('0.05134003119064903',), 1361578754: ('0.05134003119064903',), 1361578752: ('0.05134003119064903',), 1361578750: ('0.05134003119064903',)} args : 1361578832 depend.output_id : 0 input_args_next_step : {1361578832: ('0.05134003119064903',), 1361578831: ()} output_args : {1361578832: ('0.05134003119064903',), 1361578831: ('0.05134003119064903',), 1361578829: ('0.05134003119064903',), 1361578827: ('0.05134003119064903',), 1361578825: ('0.05134003119064903',), 1361578821: ('0.05134003119064903',), 1361578793: ('0.05134003119064903',), 1361578786: ('0.05134003119064903',), 1361578780: ('0.05134003119064903',), 1361578761: ('0.05134003119064903',), 1361578759: ('0.05134003119064903',), 1361578756: ('0.05134003119064903',), 1361578754: ('0.05134003119064903',), 1361578752: ('0.05134003119064903',), 1361578750: ('0.05134003119064903',)} args : 1361578831 depend.output_id : 0 input_args_next_step : {1361578832: ('0.05134003119064903',), 1361578831: ('0.05134003119064903',), 1361578829: ()} output_args : {1361578832: ('0.05134003119064903',), 1361578831: ('0.05134003119064903',), 1361578829: ('0.05134003119064903',), 1361578827: ('0.05134003119064903',), 1361578825: ('0.05134003119064903',), 1361578821: ('0.05134003119064903',), 1361578793: ('0.05134003119064903',), 1361578786: ('0.05134003119064903',), 1361578780: ('0.05134003119064903',), 1361578761: ('0.05134003119064903',), 1361578759: ('0.05134003119064903',), 1361578756: ('0.05134003119064903',), 1361578754: ('0.05134003119064903',), 1361578752: ('0.05134003119064903',), 1361578750: ('0.05134003119064903',)} args : 1361578829 depend.output_id : 0 input_args_next_step : {1361578832: ('0.05134003119064903',), 1361578831: ('0.05134003119064903',), 1361578829: ('0.05134003119064903',), 1361578827: ()} output_args : {1361578832: ('0.05134003119064903',), 1361578831: ('0.05134003119064903',), 1361578829: ('0.05134003119064903',), 1361578827: ('0.05134003119064903',), 1361578825: ('0.05134003119064903',), 1361578821: ('0.05134003119064903',), 1361578793: ('0.05134003119064903',), 1361578786: ('0.05134003119064903',), 1361578780: ('0.05134003119064903',), 1361578761: ('0.05134003119064903',), 1361578759: ('0.05134003119064903',), 1361578756: ('0.05134003119064903',), 1361578754: ('0.05134003119064903',), 1361578752: ('0.05134003119064903',), 1361578750: ('0.05134003119064903',)} args : 1361578827 depend.output_id : 0 input_args_next_step : {1361578832: ('0.05134003119064903',), 1361578831: ('0.05134003119064903',), 1361578829: ('0.05134003119064903',), 1361578827: ('0.05134003119064903',), 1361578825: ()} output_args : {1361578832: ('0.05134003119064903',), 1361578831: ('0.05134003119064903',), 1361578829: ('0.05134003119064903',), 1361578827: ('0.05134003119064903',), 1361578825: ('0.05134003119064903',), 1361578821: ('0.05134003119064903',), 1361578793: ('0.05134003119064903',), 1361578786: ('0.05134003119064903',), 1361578780: ('0.05134003119064903',), 1361578761: ('0.05134003119064903',), 1361578759: ('0.05134003119064903',), 1361578756: ('0.05134003119064903',), 1361578754: ('0.05134003119064903',), 1361578752: ('0.05134003119064903',), 1361578750: ('0.05134003119064903',)} args : 1361578825 depend.output_id : 0 input_args_next_step : {1361578832: ('0.05134003119064903',), 1361578831: ('0.05134003119064903',), 1361578829: ('0.05134003119064903',), 1361578827: ('0.05134003119064903',), 1361578825: ('0.05134003119064903',), 1361578821: ()} output_args : {1361578832: ('0.05134003119064903',), 1361578831: ('0.05134003119064903',), 1361578829: ('0.05134003119064903',), 1361578827: ('0.05134003119064903',), 1361578825: ('0.05134003119064903',), 1361578821: ('0.05134003119064903',), 1361578793: ('0.05134003119064903',), 1361578786: ('0.05134003119064903',), 1361578780: ('0.05134003119064903',), 1361578761: ('0.05134003119064903',), 1361578759: ('0.05134003119064903',), 1361578756: ('0.05134003119064903',), 1361578754: ('0.05134003119064903',), 1361578752: ('0.05134003119064903',), 1361578750: ('0.05134003119064903',)} args : 1361578821 depend.output_id : 0 input_args_next_step : {1361578832: ('0.05134003119064903',), 1361578831: ('0.05134003119064903',), 1361578829: ('0.05134003119064903',), 1361578827: ('0.05134003119064903',), 1361578825: ('0.05134003119064903',), 1361578821: ('0.05134003119064903',), 1361578793: ()} output_args : {1361578832: ('0.05134003119064903',), 1361578831: ('0.05134003119064903',), 1361578829: ('0.05134003119064903',), 1361578827: ('0.05134003119064903',), 1361578825: ('0.05134003119064903',), 1361578821: ('0.05134003119064903',), 1361578793: ('0.05134003119064903',), 1361578786: ('0.05134003119064903',), 1361578780: ('0.05134003119064903',), 1361578761: ('0.05134003119064903',), 1361578759: ('0.05134003119064903',), 1361578756: ('0.05134003119064903',), 1361578754: ('0.05134003119064903',), 1361578752: ('0.05134003119064903',), 1361578750: ('0.05134003119064903',)} args : 1361578793 depend.output_id : 0 input_args_next_step : {1361578832: ('0.05134003119064903',), 1361578831: ('0.05134003119064903',), 1361578829: ('0.05134003119064903',), 1361578827: ('0.05134003119064903',), 1361578825: ('0.05134003119064903',), 1361578821: ('0.05134003119064903',), 1361578793: ('0.05134003119064903',), 1361578786: ()} output_args : {1361578832: ('0.05134003119064903',), 1361578831: ('0.05134003119064903',), 1361578829: ('0.05134003119064903',), 1361578827: ('0.05134003119064903',), 1361578825: ('0.05134003119064903',), 1361578821: ('0.05134003119064903',), 1361578793: ('0.05134003119064903',), 1361578786: ('0.05134003119064903',), 1361578780: ('0.05134003119064903',), 1361578761: ('0.05134003119064903',), 1361578759: ('0.05134003119064903',), 1361578756: ('0.05134003119064903',), 1361578754: ('0.05134003119064903',), 1361578752: ('0.05134003119064903',), 1361578750: ('0.05134003119064903',)} args : 1361578786 depend.output_id : 0 input_args_next_step : {1361578832: ('0.05134003119064903',), 1361578831: ('0.05134003119064903',), 1361578829: ('0.05134003119064903',), 1361578827: ('0.05134003119064903',), 1361578825: ('0.05134003119064903',), 1361578821: ('0.05134003119064903',), 1361578793: ('0.05134003119064903',), 1361578786: ('0.05134003119064903',), 1361578780: ()} output_args : {1361578832: ('0.05134003119064903',), 1361578831: ('0.05134003119064903',), 1361578829: ('0.05134003119064903',), 1361578827: ('0.05134003119064903',), 1361578825: ('0.05134003119064903',), 1361578821: ('0.05134003119064903',), 1361578793: ('0.05134003119064903',), 1361578786: ('0.05134003119064903',), 1361578780: ('0.05134003119064903',), 1361578761: ('0.05134003119064903',), 1361578759: ('0.05134003119064903',), 1361578756: ('0.05134003119064903',), 1361578754: ('0.05134003119064903',), 1361578752: ('0.05134003119064903',), 1361578750: ('0.05134003119064903',)} args : 1361578780 depend.output_id : 0 input_args_next_step : {1361578832: ('0.05134003119064903',), 1361578831: ('0.05134003119064903',), 1361578829: ('0.05134003119064903',), 1361578827: ('0.05134003119064903',), 1361578825: ('0.05134003119064903',), 1361578821: ('0.05134003119064903',), 1361578793: ('0.05134003119064903',), 1361578786: ('0.05134003119064903',), 1361578780: ('0.05134003119064903',), 1361578761: ()} output_args : {1361578832: ('0.05134003119064903',), 1361578831: ('0.05134003119064903',), 1361578829: ('0.05134003119064903',), 1361578827: ('0.05134003119064903',), 1361578825: ('0.05134003119064903',), 1361578821: ('0.05134003119064903',), 1361578793: ('0.05134003119064903',), 1361578786: ('0.05134003119064903',), 1361578780: ('0.05134003119064903',), 1361578761: ('0.05134003119064903',), 1361578759: ('0.05134003119064903',), 1361578756: ('0.05134003119064903',), 1361578754: ('0.05134003119064903',), 1361578752: ('0.05134003119064903',), 1361578750: ('0.05134003119064903',)} args : 1361578761 depend.output_id : 0 input_args_next_step : {1361578832: ('0.05134003119064903',), 1361578831: ('0.05134003119064903',), 1361578829: ('0.05134003119064903',), 1361578827: ('0.05134003119064903',), 1361578825: ('0.05134003119064903',), 1361578821: ('0.05134003119064903',), 1361578793: ('0.05134003119064903',), 1361578786: ('0.05134003119064903',), 1361578780: ('0.05134003119064903',), 1361578761: ('0.05134003119064903',), 1361578759: ()} output_args : {1361578832: ('0.05134003119064903',), 1361578831: ('0.05134003119064903',), 1361578829: ('0.05134003119064903',), 1361578827: ('0.05134003119064903',), 1361578825: ('0.05134003119064903',), 1361578821: ('0.05134003119064903',), 1361578793: ('0.05134003119064903',), 1361578786: ('0.05134003119064903',), 1361578780: ('0.05134003119064903',), 1361578761: ('0.05134003119064903',), 1361578759: ('0.05134003119064903',), 1361578756: ('0.05134003119064903',), 1361578754: ('0.05134003119064903',), 1361578752: ('0.05134003119064903',), 1361578750: ('0.05134003119064903',)} args : 1361578759 depend.output_id : 0 input_args_next_step : {1361578832: ('0.05134003119064903',), 1361578831: ('0.05134003119064903',), 1361578829: ('0.05134003119064903',), 1361578827: ('0.05134003119064903',), 1361578825: ('0.05134003119064903',), 1361578821: ('0.05134003119064903',), 1361578793: ('0.05134003119064903',), 1361578786: ('0.05134003119064903',), 1361578780: ('0.05134003119064903',), 1361578761: ('0.05134003119064903',), 1361578759: ('0.05134003119064903',), 1361578756: ()} output_args : {1361578832: ('0.05134003119064903',), 1361578831: ('0.05134003119064903',), 1361578829: ('0.05134003119064903',), 1361578827: ('0.05134003119064903',), 1361578825: ('0.05134003119064903',), 1361578821: ('0.05134003119064903',), 1361578793: ('0.05134003119064903',), 1361578786: ('0.05134003119064903',), 1361578780: ('0.05134003119064903',), 1361578761: ('0.05134003119064903',), 1361578759: ('0.05134003119064903',), 1361578756: ('0.05134003119064903',), 1361578754: ('0.05134003119064903',), 1361578752: ('0.05134003119064903',), 1361578750: ('0.05134003119064903',)} args : 1361578756 depend.output_id : 0 input_args_next_step : {1361578832: ('0.05134003119064903',), 1361578831: ('0.05134003119064903',), 1361578829: ('0.05134003119064903',), 1361578827: ('0.05134003119064903',), 1361578825: ('0.05134003119064903',), 1361578821: ('0.05134003119064903',), 1361578793: ('0.05134003119064903',), 1361578786: ('0.05134003119064903',), 1361578780: ('0.05134003119064903',), 1361578761: ('0.05134003119064903',), 1361578759: ('0.05134003119064903',), 1361578756: ('0.05134003119064903',), 1361578754: ()} output_args : {1361578832: ('0.05134003119064903',), 1361578831: ('0.05134003119064903',), 1361578829: ('0.05134003119064903',), 1361578827: ('0.05134003119064903',), 1361578825: ('0.05134003119064903',), 1361578821: ('0.05134003119064903',), 1361578793: ('0.05134003119064903',), 1361578786: ('0.05134003119064903',), 1361578780: ('0.05134003119064903',), 1361578761: ('0.05134003119064903',), 1361578759: ('0.05134003119064903',), 1361578756: ('0.05134003119064903',), 1361578754: ('0.05134003119064903',), 1361578752: ('0.05134003119064903',), 1361578750: ('0.05134003119064903',)} args : 1361578754 depend.output_id : 0 input_args_next_step : {1361578832: ('0.05134003119064903',), 1361578831: ('0.05134003119064903',), 1361578829: ('0.05134003119064903',), 1361578827: ('0.05134003119064903',), 1361578825: ('0.05134003119064903',), 1361578821: ('0.05134003119064903',), 1361578793: ('0.05134003119064903',), 1361578786: ('0.05134003119064903',), 1361578780: ('0.05134003119064903',), 1361578761: ('0.05134003119064903',), 1361578759: ('0.05134003119064903',), 1361578756: ('0.05134003119064903',), 1361578754: ('0.05134003119064903',), 1361578752: ()} output_args : {1361578832: ('0.05134003119064903',), 1361578831: ('0.05134003119064903',), 1361578829: ('0.05134003119064903',), 1361578827: ('0.05134003119064903',), 1361578825: ('0.05134003119064903',), 1361578821: ('0.05134003119064903',), 1361578793: ('0.05134003119064903',), 1361578786: ('0.05134003119064903',), 1361578780: ('0.05134003119064903',), 1361578761: ('0.05134003119064903',), 1361578759: ('0.05134003119064903',), 1361578756: ('0.05134003119064903',), 1361578754: ('0.05134003119064903',), 1361578752: ('0.05134003119064903',), 1361578750: ('0.05134003119064903',)} args : 1361578752 depend.output_id : 0 input_args_next_step : {1361578832: ('0.05134003119064903',), 1361578831: ('0.05134003119064903',), 1361578829: ('0.05134003119064903',), 1361578827: ('0.05134003119064903',), 1361578825: ('0.05134003119064903',), 1361578821: ('0.05134003119064903',), 1361578793: ('0.05134003119064903',), 1361578786: ('0.05134003119064903',), 1361578780: ('0.05134003119064903',), 1361578761: ('0.05134003119064903',), 1361578759: ('0.05134003119064903',), 1361578756: ('0.05134003119064903',), 1361578754: ('0.05134003119064903',), 1361578752: ('0.05134003119064903',), 1361578750: ()} output_args : {1361578832: ('0.05134003119064903',), 1361578831: ('0.05134003119064903',), 1361578829: ('0.05134003119064903',), 1361578827: ('0.05134003119064903',), 1361578825: ('0.05134003119064903',), 1361578821: ('0.05134003119064903',), 1361578793: ('0.05134003119064903',), 1361578786: ('0.05134003119064903',), 1361578780: ('0.05134003119064903',), 1361578761: ('0.05134003119064903',), 1361578759: ('0.05134003119064903',), 1361578756: ('0.05134003119064903',), 1361578754: ('0.05134003119064903',), 1361578752: ('0.05134003119064903',), 1361578750: ('0.05134003119064903',)} args : 1361578750 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 : {23432833: [{'plastique': 23432848, 'mal_croppe': 23432849, 'kraft': 23432850, 'flou': 23432851, 'Teint_Dans_La_Masse': 23432852, 'cartonnette': 23432853, 'autre_refus': 23432854, 'papier': 23432855, 'Carton_gris': 23432856, 'metal': 23432857, 'Carton_brun': 23432858, 'environnement': 23432859}]} input_args_next_step : {1361578832: ('0.05134003119064903',), 1361578831: ('0.05134003119064903',), 1361578829: ('0.05134003119064903',), 1361578827: ('0.05134003119064903',), 1361578825: ('0.05134003119064903',), 1361578821: ('0.05134003119064903',), 1361578793: ('0.05134003119064903',), 1361578786: ('0.05134003119064903',), 1361578780: ('0.05134003119064903',), 1361578761: ('0.05134003119064903',), 1361578759: ('0.05134003119064903',), 1361578756: ('0.05134003119064903',), 1361578754: ('0.05134003119064903',), 1361578752: ('0.05134003119064903',), 1361578750: ('0.05134003119064903',), 23432833: ()} output_args : {23432833: [{'plastique': 23432848, 'mal_croppe': 23432849, 'kraft': 23432850, 'flou': 23432851, 'Teint_Dans_La_Masse': 23432852, 'cartonnette': 23432853, 'autre_refus': 23432854, 'papier': 23432855, 'Carton_gris': 23432856, 'metal': 23432857, 'Carton_brun': 23432858, 'environnement': 23432859}]} args : 23432833 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 :16, first value : ('0.05134003119064903',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23432833) 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 (1361578832,1361578831,1361578829,1361578827,1361578825,1361578821,1361578793,1361578786,1361578780,1361578761,1361578759,1361578756,1361578754,1361578752,1361578750) Found this number of photos: 15 ##### Call download_photos : nb_thread : 5 begin to download photo : 1361578750 begin to download photo : 1361578759 begin to download photo : 1361578793 begin to download photo : 1361578829 download finish for photo 1361578759 begin to download photo : 1361578761 download finish for photo 1361578793 begin to download photo : 1361578821 download finish for photo 1361578829 begin to download photo : 1361578831 download finish for photo 1361578750 begin to download photo : 1361578752 download finish for photo 1361578761 begin to download photo : 1361578780 download finish for photo 1361578821 begin to download photo : 1361578825 download finish for photo 1361578831 begin to download photo : 1361578832 download finish for photo 1361578752 begin to download photo : 1361578754 download finish for photo 1361578832 download finish for photo 1361578825 begin to download photo : 1361578827 download finish for photo 1361578754 begin to download photo : 1361578756 download finish for photo 1361578780 begin to download photo : 1361578786 download finish for photo 1361578827 download finish for photo 1361578756 download finish for photo 1361578786 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 15 ; length of list_pids : 15 ; length of list_args : 15 results_Auto_P23432833_29-05-2025_02_49_00.pdf 23432848 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=23432848 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361578704: '1748479406_2711644_1361578609_74a00e20fed70feff1d76e4f918f077c_rle_crop_3814994982_0.png', 1361578705: '1748479406_2711644_1361578608_c4c8f75c99f032206355fb332b812d9a_rle_crop_3814994993_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/87e18a1ba76629b44564f233cab30d14_13805010.png change filename to text .imagette234328481748479740/ imagette234328481748479740/1748479406_2711644_1361578608_c4c8f75c99f032206355fb332b812d9a_rle_crop_3814994993_0.png.png imagette234328481748479740/1748479406_2711644_1361578609_74a00e20fed70feff1d76e4f918f077c_rle_crop_3814994982_0.png.png imagette234328491748479740/ imagette234328501748479740/ imagette234328511748479740/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/29/95b21bde4aaa0d2ae47e61c38b28bea6_71067359.png imagette234328481748479740 23432849 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=23432849 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette234328491748479740 23432850 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=23432850 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette234328501748479740 23432851 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=23432851 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette234328511748479740 23432853 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=23432853 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361578696: '1748479406_2711644_1361578602_7aa1b060ede4f269f9a72d671c9c4447_rle_crop_3814995006_0.png', 1361578697: '1748479406_2711644_1361578597_267fd88d2b1a8d8ae3ed994a991e655e_rle_crop_3814995018_0.png', 1361578698: '1748479406_2711644_1361578597_267fd88d2b1a8d8ae3ed994a991e655e_rle_crop_3814995019_0.png', 1361578856: '1748479705_2722159_1361578730_98087416a614fab1b07ab611bfedb79c_rle_crop_3814996690_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/7f9ef6b4890acf51c51fbe0884ee0006_46612609.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/29/98eb7d223ccbad0e6ac4cf989ecb33f3_58645938.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/29/a0cb60433e7f16e28f09a0431e6a9b26_34589630.png change filename to text .imagette234328531748479740/ imagette234328531748479740/1748479705_2722159_1361578730_98087416a614fab1b07ab611bfedb79c_rle_crop_3814996690_0.png.png imagette234328531748479740/1748479406_2711644_1361578597_267fd88d2b1a8d8ae3ed994a991e655e_rle_crop_3814995018_0.png.png imagette234328531748479740/1748479406_2711644_1361578597_267fd88d2b1a8d8ae3ed994a991e655e_rle_crop_3814995019_0.png.png imagette234328531748479740/1748479406_2711644_1361578602_7aa1b060ede4f269f9a72d671c9c4447_rle_crop_3814995006_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/29/a46e6c7acef5e2d79fc4803c7753eb62_84275529.png imagette234328531748479740 23432854 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=23432854 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361578823: '1748479647_2718325_1361578732_d31de26339b21c387797edeed1cfbe9b_rle_crop_3814996543_0.png'} change filename to text .imagette234328541748479741/ imagette234328541748479741/1748479647_2718325_1361578732_d31de26339b21c387797edeed1cfbe9b_rle_crop_3814996543_0.png.png imagette234328571748479741/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/29/e38a3bd1f98c4badfec776be3a1db48c_52640352.png imagette234328541748479741 23432857 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=23432857 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette234328571748479741 23432852 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=23432852 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361578686: '1748479406_2711644_1361578609_74a00e20fed70feff1d76e4f918f077c_rle_crop_3814994976_0.png', 1361578687: '1748479406_2711644_1361578609_74a00e20fed70feff1d76e4f918f077c_rle_crop_3814994978_0.png', 1361578688: '1748479406_2711644_1361578608_c4c8f75c99f032206355fb332b812d9a_rle_crop_3814994991_0.png', 1361578822: '1748479647_2718325_1361578732_d31de26339b21c387797edeed1cfbe9b_rle_crop_3814996546_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/314e9086c058f1581f4228ebd672d592_19288314.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/29/6149b8eb6047e5ef04a2b14e172a0abc_69254387.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/29/c5ef360f94da13c0fa46ba1f9414734b_77909821.png change filename to text .imagette234328521748479741/ imagette234328521748479741/1748479406_2711644_1361578608_c4c8f75c99f032206355fb332b812d9a_rle_crop_3814994991_0.png.png imagette234328521748479741/1748479647_2718325_1361578732_d31de26339b21c387797edeed1cfbe9b_rle_crop_3814996546_0.png.png imagette234328521748479741/1748479406_2711644_1361578609_74a00e20fed70feff1d76e4f918f077c_rle_crop_3814994978_0.png.png imagette234328521748479741/1748479406_2711644_1361578609_74a00e20fed70feff1d76e4f918f077c_rle_crop_3814994976_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/29/c03274d9f132d1b899a352a2c3b29b66_48029327.png imagette234328521748479741 23432856 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=23432856 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361578690: '1748479406_2711644_1361578611_92c657d48adf1444f69a34fd87d6b678_rle_crop_3814994964_0.png', 1361578691: '1748479406_2711644_1361578602_7aa1b060ede4f269f9a72d671c9c4447_rle_crop_3814995002_0.png', 1361578692: '1748479406_2711644_1361578602_7aa1b060ede4f269f9a72d671c9c4447_rle_crop_3814995000_0.png', 1361578693: '1748479406_2711644_1361578597_267fd88d2b1a8d8ae3ed994a991e655e_rle_crop_3814995020_0.png', 1361578694: '1748479406_2711644_1361578597_267fd88d2b1a8d8ae3ed994a991e655e_rle_crop_3814995023_0.png', 1361578850: '1748479705_2722159_1361578730_98087416a614fab1b07ab611bfedb79c_rle_crop_3814996689_0.png', 1361578851: '1748479705_2722159_1361578728_5a8f3ed29d82e5e8fac478a721ef5fec_rle_crop_3814996699_0.png', 1361578852: '1748479705_2722159_1361578726_e58f0cfd20d9d6aac38cc8a56bb8944a_rle_crop_3814996708_0.png', 1361578853: '1748479705_2722159_1361578726_e58f0cfd20d9d6aac38cc8a56bb8944a_rle_crop_3814996709_0.png', 1361578854: '1748479705_2722159_1361578721_10cfee37433882d5e56522661ea0d692_rle_crop_3814996719_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/29dba7ae30b4bbbbd360a4671aa56774_68093133.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/29/debb7fc80f9da2fee159f43f99cb5230_99854200.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/29/5c5177e8d0970c4d81f3539b564dea26_80899567.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/29/7c00d93ad9a29d3d533c532d389b2fd9_9028996.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/29/28857d062dcaadb793b46f9c5a6ca4e2_52009645.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/29/70c4646c39ae539f8b42a0a0bdefaf37_5019874.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/29/9ab30eef6a78f2390c34cdeb84771db3_75733262.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/29/3853fddd46a559275d58a5514593e521_38554393.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/29/9bf8cb1f771f3791bf8e8108a7ad06b8_65685114.png change filename to text .imagette234328561748479741/ imagette234328561748479741/1748479705_2722159_1361578721_10cfee37433882d5e56522661ea0d692_rle_crop_3814996719_0.png.png imagette234328561748479741/1748479406_2711644_1361578611_92c657d48adf1444f69a34fd87d6b678_rle_crop_3814994964_0.png.png imagette234328561748479741/1748479705_2722159_1361578728_5a8f3ed29d82e5e8fac478a721ef5fec_rle_crop_3814996699_0.png.png imagette234328561748479741/1748479705_2722159_1361578726_e58f0cfd20d9d6aac38cc8a56bb8944a_rle_crop_3814996708_0.png.png imagette234328561748479741/1748479406_2711644_1361578597_267fd88d2b1a8d8ae3ed994a991e655e_rle_crop_3814995023_0.png.png imagette234328561748479741/1748479406_2711644_1361578597_267fd88d2b1a8d8ae3ed994a991e655e_rle_crop_3814995020_0.png.png imagette234328561748479741/1748479406_2711644_1361578602_7aa1b060ede4f269f9a72d671c9c4447_rle_crop_3814995002_0.png.png imagette234328561748479741/1748479705_2722159_1361578730_98087416a614fab1b07ab611bfedb79c_rle_crop_3814996689_0.png.png imagette234328561748479741/1748479406_2711644_1361578602_7aa1b060ede4f269f9a72d671c9c4447_rle_crop_3814995000_0.png.png imagette234328561748479741/1748479705_2722159_1361578726_e58f0cfd20d9d6aac38cc8a56bb8944a_rle_crop_3814996709_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/29/1dbd2dfbb4d6aa540395d2673146ba3c_32791287.png imagette234328561748479741 23432858 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=23432858 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361578700: '1748479406_2711644_1361578611_92c657d48adf1444f69a34fd87d6b678_rle_crop_3814994968_0.png', 1361578701: '1748479406_2711644_1361578609_74a00e20fed70feff1d76e4f918f077c_rle_crop_3814994979_0.png', 1361578702: '1748479406_2711644_1361578608_c4c8f75c99f032206355fb332b812d9a_rle_crop_3814994992_0.png', 1361578703: '1748479406_2711644_1361578602_7aa1b060ede4f269f9a72d671c9c4447_rle_crop_3814995012_0.png', 1361578857: '1748479705_2722159_1361578728_5a8f3ed29d82e5e8fac478a721ef5fec_rle_crop_3814996700_0.png', 1361578858: '1748479705_2722159_1361578726_e58f0cfd20d9d6aac38cc8a56bb8944a_rle_crop_3814996706_0.png', 1361578859: '1748479705_2722159_1361578726_e58f0cfd20d9d6aac38cc8a56bb8944a_rle_crop_3814996711_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/cf0020490acd196c6f8f6c02418eda6e_27761183.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/29/d933550385e13a264a7f49bf6f88612f_96107766.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/29/68d7baed0c7d7c3b344eb28bc1b84bb7_20532678.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/29/f68cd2d9421bf0a1feb6fafb4725982b_12423612.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/29/8b4e90c48b8692a962b35a0039fbb141_79534993.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/29/f380b6c278248627dbd05a3cdeda488c_46898996.png change filename to text .imagette234328581748479742/ imagette234328581748479742/1748479406_2711644_1361578608_c4c8f75c99f032206355fb332b812d9a_rle_crop_3814994992_0.png.png imagette234328581748479742/1748479406_2711644_1361578611_92c657d48adf1444f69a34fd87d6b678_rle_crop_3814994968_0.png.png imagette234328581748479742/1748479705_2722159_1361578726_e58f0cfd20d9d6aac38cc8a56bb8944a_rle_crop_3814996706_0.png.png imagette234328581748479742/1748479705_2722159_1361578728_5a8f3ed29d82e5e8fac478a721ef5fec_rle_crop_3814996700_0.png.png imagette234328581748479742/1748479406_2711644_1361578602_7aa1b060ede4f269f9a72d671c9c4447_rle_crop_3814995012_0.png.png imagette234328581748479742/1748479705_2722159_1361578726_e58f0cfd20d9d6aac38cc8a56bb8944a_rle_crop_3814996711_0.png.png imagette234328581748479742/1748479406_2711644_1361578609_74a00e20fed70feff1d76e4f918f077c_rle_crop_3814994979_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/29/65629e8fcf5810d695974948c3ffa2cb_47873884.png imagette234328581748479742 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=23432833 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/23432861,23432862,23432863,23432864,23432865,23432866,23432867,23432868,23432869,23432870,23432871,23432872?tags=plastique,mal_croppe,kraft,flou,Teint_Dans_La_Masse,cartonnette,autre_refus,papier,Carton_gris,metal,Carton_brun,environnement your option no_mail is active, we will not send the real mail to your client args[1361578832] : ('0.05134003119064903',) no score found for photo 1361578832 We are sending mail with results at report@fotonower.com args[1361578831] : ('0.05134003119064903',) no score found for photo 1361578831 We are sending mail with results at report@fotonower.com args[1361578829] : ('0.05134003119064903',) no score found for photo 1361578829 We are sending mail with results at report@fotonower.com args[1361578827] : ('0.05134003119064903',) no score found for photo 1361578827 We are sending mail with results at report@fotonower.com args[1361578825] : ('0.05134003119064903',) no score found for photo 1361578825 We are sending mail with results at report@fotonower.com args[1361578821] : ('0.05134003119064903',) no score found for photo 1361578821 We are sending mail with results at report@fotonower.com args[1361578793] : ('0.05134003119064903',) no score found for photo 1361578793 We are sending mail with results at report@fotonower.com args[1361578786] : ('0.05134003119064903',) no score found for photo 1361578786 We are sending mail with results at report@fotonower.com args[1361578780] : ('0.05134003119064903',) no score found for photo 1361578780 We are sending mail with results at report@fotonower.com args[1361578761] : ('0.05134003119064903',) no score found for photo 1361578761 We are sending mail with results at report@fotonower.com args[1361578759] : ('0.05134003119064903',) no score found for photo 1361578759 We are sending mail with results at report@fotonower.com args[1361578756] : ('0.05134003119064903',) no score found for photo 1361578756 We are sending mail with results at report@fotonower.com args[1361578754] : ('0.05134003119064903',) no score found for photo 1361578754 We are sending mail with results at report@fotonower.com args[1361578752] : ('0.05134003119064903',) no score found for photo 1361578752 We are sending mail with results at report@fotonower.com args[1361578750] : ('0.05134003119064903',) no score found for photo 1361578750 We are sending mail with results at report@fotonower.com refus_total : 0.05134003119064903 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=23432833 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_P23432833_29-05-2025_02_49_00.pdf results_Auto_P23432833_29-05-2025_02_49_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23432833_29-05-2025_02_49_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','23432833','results_Auto_P23432833_29-05-2025_02_49_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23432833_29-05-2025_02_49_00.pdf','pdf','','0.21','0.05134003119064903') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23432833]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1361578832, 1361578831, 1361578829, 1361578827, 1361578825, 1361578821, 1361578793, 1361578786, 1361578780, 1361578761, 1361578759, 1361578756, 1361578754, 1361578752, 1361578750] map_info['map_portfolio_photo'] : {23432833: [1361578832, 1361578831, 1361578829, 1361578827, 1361578825, 1361578821, 1361578793, 1361578786, 1361578780, 1361578761, 1361578759, 1361578756, 1361578754, 1361578752, 1361578750, 1361578732, 1361578730, 1361578728, 1361578726, 1361578721, 1361578689, 1361578684, 1361578682, 1361578668, 1361578666, 1361578663, 1361578662, 1361578661, 1361578660, 1361578639, 1361578636, 1361578633, 1361578611, 1361578609, 1361578608, 1361578602, 1361578597]} final : False mtd_id 4302 list_pids : [1361578832, 1361578831, 1361578829, 1361578827, 1361578825, 1361578821, 1361578793, 1361578786, 1361578780, 1361578761, 1361578759, 1361578756, 1361578754, 1361578752, 1361578750] 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, '2981326') ('4302', '23432833', '1361578832', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578831', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578829', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578827', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578825', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578821', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578793', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578786', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578780', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578761', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578759', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578756', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578754', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578752', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578750', None, None, None, None, None, '2981326') 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', '23432833', '1361578832', None, None, None, None, None, '2981326'), ('4302', '23432833', '1361578831', None, None, None, None, None, '2981326'), ('4302', '23432833', '1361578829', None, None, None, None, None, '2981326'), ('4302', '23432833', '1361578827', None, None, None, None, None, '2981326'), ('4302', '23432833', '1361578825', None, None, None, None, None, '2981326'), ('4302', '23432833', '1361578821', None, None, None, None, None, '2981326'), ('4302', '23432833', '1361578793', None, None, None, None, None, '2981326'), ('4302', '23432833', '1361578786', None, None, None, None, None, '2981326'), ('4302', '23432833', '1361578780', None, None, None, None, None, '2981326'), ('4302', '23432833', '1361578761', None, None, None, None, None, '2981326'), ('4302', '23432833', '1361578759', None, None, None, None, None, '2981326'), ('4302', '23432833', '1361578756', None, None, None, None, None, '2981326'), ('4302', '23432833', '1361578754', None, None, None, None, None, '2981326'), ('4302', '23432833', '1361578752', None, None, None, None, None, '2981326'), ('4302', '23432833', '1361578750', None, None, None, None, None, '2981326')] time used for this insertion : 0.017053604125976562 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.014274597167969 time spend to save output : 0.017405986785888672 total time spend for step 4 : 4.031680583953857 step5:split_time_score Thu May 29 02:49:04 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['23432833'] 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 : [('23432833',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23432833) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1361578829: {'path': 'temp/1748479740_92941_1361578829_122911e92543317af5631bb60cfafd64.jpg', 'extension': 'jpg'}, 1361578831: {'path': 'temp/1748479740_92941_1361578831_7bccd42f6adb77c5739879996e5efce2.jpg', 'extension': 'jpg'}, 1361578832: {'path': 'temp/1748479740_92941_1361578832_f271e2cfb236d944cfff964817a25a26.jpg', 'extension': 'jpg'}, 1361578793: {'path': 'temp/1748479740_92941_1361578793_c4746f5e6a63bdfc8b8febbb2aafb52a.jpg', 'extension': 'jpg'}, 1361578821: {'path': 'temp/1748479740_92941_1361578821_4a294d488740f4aaf2c659cd3ebee8ec.jpg', 'extension': 'jpg'}, 1361578825: {'path': 'temp/1748479740_92941_1361578825_a6e852fc7a7cfc2505c44438613e7e38.jpg', 'extension': 'jpg'}, 1361578827: {'path': 'temp/1748479740_92941_1361578827_69de6beae6773694c8151f2fef0b82cd.jpg', 'extension': 'jpg'}, 1361578750: {'path': 'temp/1748479740_92941_1361578750_22f1b957e4e7a8658bb827afa02bdbbc.jpg', 'extension': 'jpg'}, 1361578752: {'path': 'temp/1748479740_92941_1361578752_bf4289c639577c89482bede88b3c08e8.jpg', 'extension': 'jpg'}, 1361578754: {'path': 'temp/1748479740_92941_1361578754_668c02e4e6af731b71bf5de47f446d24.jpg', 'extension': 'jpg'}, 1361578756: {'path': 'temp/1748479740_92941_1361578756_85032a40e7ae8647ac5387ffb6ed47f6.jpg', 'extension': 'jpg'}, 1361578759: {'path': 'temp/1748479740_92941_1361578759_dd6628fc9ea7cc12c054522343832a49.jpg', 'extension': 'jpg'}, 1361578761: {'path': 'temp/1748479740_92941_1361578761_1fc617125731bd9336825b7fd21b89d6.jpg', 'extension': 'jpg'}, 1361578780: {'path': 'temp/1748479740_92941_1361578780_550c7bf104e466453fc8d11ea5c0ac89.jpg', 'extension': 'jpg'}, 1361578786: {'path': 'temp/1748479740_92941_1361578786_ecb3814414c9a561ad3df286175ca84e.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 = 23432833; (('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 = 23432833 group by h (('02', 37),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=23432833 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 (23432833) 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 (23432833) 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 23432833 Nombre de photos uploadées : 37 / 23040 (0%) 29052025 23432833 Nombre de photos taguées (types de déchets): 0 / 37 (0%) 29052025 23432833 Nombre de photos taguées (volume) : 0 / 37 (0%) [{'photo_id': 1361578611, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/29/92c657d48adf1444f69a34fd87d6b678.jpg', 'username': None, 'uploaded_at': 1748479246, 'text': 'image_29052025_02_15_04_010140m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1361578609, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/29/74a00e20fed70feff1d76e4f918f077c.jpg', 'username': None, 'uploaded_at': 1748479246, 'text': 'image_29052025_02_15_14_010142m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1361578608, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/29/c4c8f75c99f032206355fb332b812d9a.jpg', 'username': None, 'uploaded_at': 1748479246, 'text': 'image_29052025_02_15_24_010146m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1361578602, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/29/7aa1b060ede4f269f9a72d671c9c4447.jpg', 'username': None, 'uploaded_at': 1748479246, 'text': 'image_29052025_02_15_34_010140m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.337860107421875e-06 elapsed_time : order_list_meta_photo_and_scores 1.0013580322265625e-05 ????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0011827945709228516 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 23432833, '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.027791738510131836 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': 1852464, 'mtr_portfolio_id': 23430334, 'dashboard_result_id': 11023936, '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': 1852464, 'mtr_portfolio_id': 23430497, 'dashboard_result_id': 11023937, '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': 1852464, 'mtr_portfolio_id': 23430732, 'dashboard_result_id': 11023938, '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_02_24_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': 1852464, 'mtr_portfolio_id': 23431384, 'dashboard_result_id': 11023939, '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_P23431384_29-05-2025_01_42_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23431386, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23431387, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23431388, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23431389, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23431390, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23431391, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23431392, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23431393, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23431394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23431395, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23431396, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23431397, 'pht': 3726}}"}, {'dashboat_entry_day': 1844847, 'dashboard_run_id': 1852464, 'mtr_portfolio_id': 23431503, 'dashboard_result_id': 11023940, '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': 1852464, 'mtr_portfolio_id': 23431787, 'dashboard_result_id': 11023941, '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': 1852464, 'mtr_portfolio_id': 23432187, 'dashboard_result_id': 11023942, '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_25_28.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}}"}, {'dashboat_entry_day': 1844847, 'dashboard_run_id': 1852464, 'mtr_portfolio_id': 23432421, 'dashboard_result_id': 11023943, '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_P23432421_29-05-2025_02_41_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23432431, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23432432, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23432434, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23432436, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23432438, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23432440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23432442, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23432445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23432447, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23432449, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23432451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23432453, 'pht': 3726}}"}, {'dashboat_entry_day': 1844847, 'dashboard_run_id': 1852464, 'mtr_portfolio_id': 23432833, 'dashboard_result_id': 11023944, '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_P23432833_29-05-2025_02_45_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23432848, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23432849, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23432850, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23432851, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23432852, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23432853, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23432854, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23432855, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23432856, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23432857, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23432858, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23432859, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 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 = 1852464 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 (11023936, 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 = 1852464 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 (11023937, 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, 2, 24, 58), 'result': '0.07494602642588992', 'result_long': None, 'result_double': None}] Qualite : 0.07494602642588992 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_02_24_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_02_24_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 = 1852464 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 (11023938, 0.07494602642588992, "{'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_02_24_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 = 23431384 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': 2980905, 'mtr_portfolio_id': 23431384, 'created_at': datetime.datetime(2025, 5, 29, 1, 42, 59), 'result': '0.0702023931698506', 'result_long': None, 'result_double': None}] Qualite : 0.0702023931698506 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23431384 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23431384_29-05-2025_01_42_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23431384 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_P23431384_29-05-2025_01_42_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23431386, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23431387, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23431388, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23431389, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23431390, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23431391, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23431392, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23431393, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23431394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23431395, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23431396, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23431397, 'pht': 3726}}" where mtr_portfolio_id = 23431384 and dashboard_run_id = 1852464 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`=23431384 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11023939, 0.0702023931698506, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23431384_29-05-2025_01_42_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23431386, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23431387, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23431388, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23431389, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23431390, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23431391, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23431392, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23431393, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23431394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23431395, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23431396, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23431397, '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 = 1852464 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 (11023940, 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 = 1852464 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 (11023941, 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, 26, 57), 'result': '0.07074534612159114', 'result_long': None, 'result_double': None}] Qualite : 0.07074534612159114 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_26_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_26_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 = 1852464 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 (11023942, 0.07074534612159114, "{'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_26_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 mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23432421 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': 2981211, 'mtr_portfolio_id': 23432421, 'created_at': datetime.datetime(2025, 5, 29, 2, 41, 58), 'result': '0.05689972779902318', 'result_long': None, 'result_double': None}] Qualite : 0.05689972779902318 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23432421 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23432421_29-05-2025_02_41_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23432421 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_P23432421_29-05-2025_02_41_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23432431, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23432432, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23432434, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23432436, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23432438, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23432440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23432442, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23432445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23432447, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23432449, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23432451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23432453, 'pht': 3726}}" where mtr_portfolio_id = 23432421 and dashboard_run_id = 1852463 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`=23432421 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11023943, 0.05689972779902318, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23432421_29-05-2025_02_41_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23432431, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23432432, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23432434, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23432436, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23432438, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23432440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23432442, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23432445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23432447, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23432449, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23432451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23432453, '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 = 23432833 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': 2981326, 'mtr_portfolio_id': 23432833, 'created_at': datetime.datetime(2025, 5, 29, 2, 48, 59), 'result': '0.05134003119064903', 'result_long': None, 'result_double': None}] Qualite : 0.05134003119064903 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23432833 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23432833_29-05-2025_02_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23432833 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_P23432833_29-05-2025_02_49_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23432848, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23432849, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23432850, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23432851, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23432852, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23432853, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23432854, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23432855, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23432856, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23432857, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23432858, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23432859, 'pht': 3726}}" where mtr_portfolio_id = 23432833 and dashboard_run_id = 1852463 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`=23432833 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (11023944, 0.05134003119064903, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23432833_29-05-2025_02_49_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23432848, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23432849, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23432850, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23432851, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23432852, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23432853, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23432854, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23432855, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23432856, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23432857, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23432858, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23432859, '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,23431384,23431503,23431787,23432187,23432421,23432833) 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,), (1361576285,), (1361576280,), (1361576283,), (1361576313,), (1361576316,), (1361576320,), (1361576322,), (1361576324,), (1361576325,), (1361576347,), (1361576350,), (1361576352,), (1361576376,), (1361576379,), (1361576382,), (1361576385,), (1361576406,), (1361576412,), (1361576417,), (1361576419,), (1361576420,), (1361576435,), (1361576437,), (1361576439,), (1361576442,), (1361576444,), (1361576446,), (1361576464,), (1361576494,), (1361576496,), (1361576498,), (1361576501,), (1361576528,), (1361576531,), (1361576536,), (1361576541,), (1361576546,), (1361576592,), (1361576594,), (1361576596,), (1361576600,), (1361576603,), (1361576644,), (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,), (1361577835,), (1361577840,), (1361577844,), (1361577853,), (1361577854,), (1361577855,), (1361577871,), (1361577873,), (1361577874,), (1361577895,), (1361577897,), (1361577899,), (1361577900,), (1361577915,), (1361577917,), (1361577924,), (1361577928,), (1361577938,), (1361577947,), (1361577982,), (1361577984,), (1361577989,), (1361577994,), (1361577996,), (1361578013,), (1361578014,), (1361578015,), (1361578016,), (1361578042,), (1361578044,), (1361578046,), (1361578049,), (1361578050,), (1361578051,), (1361578083,), (1361578084,), (1361578085,), (1361578086,), (1361578087,), (1361578089,), (1361578094,), (1361578097,), (1361578101,), (1361578119,), (1361578111,), (1361578113,), (1361578115,), (1361578117,), (1361578137,), (1361578138,), (1361578139,), (1361578141,), (1361578142,), (1361578167,), (1361578169,), (1361578171,), (1361578175,), (1361578196,), (1361578197,), (1361578201,), (1361578202,), (1361578221,), (1361578224,), (1361578231,), (1361578234,), (1361578237,), (1361578239,), (1361578257,), (1361578260,), (1361578267,), (1361578271,), (1361578274,), (1361578277,), (1361578294,), (1361578296,), (1361578298,), (1361578300,), (1361578318,), (1361578319,), (1361578327,), (1361578332,), (1361578334,), (1361578336,), (1361578358,), (1361578360,), (1361578362,), (1361578378,), (1361578431,), (1361578432,), (1361578433,), (1361578434,), (1361578453,), (1361578456,), (1361578459,), (1361578466,), (1361578468,), (1361578486,), (1361578488,), (1361578489,), (1361578491,), (1361578517,), (1361578520,), (1361578522,), (1361578524,), (1361578526,), (1361578527,), (1361578543,), (1361578544,), (1361578545,), (1361578546,), (1361578549,), (1361578550,), (1361578565,), (1361578567,), (1361578570,), (1361578613,), (1361578597,), (1361578602,), (1361578608,), (1361578609,), (1361578611,), (1361578633,), (1361578636,), (1361578639,), (1361578660,), (1361578661,), (1361578662,), (1361578663,), (1361578666,), (1361578668,), (1361578682,), (1361578684,), (1361578689,), (1361578721,), (1361578726,), (1361578728,), (1361578730,), (1361578732,), (1361578750,), (1361578752,), (1361578754,), (1361578756,), (1361578759,), (1361578761,), (1361578780,), (1361578786,), (1361578793,), (1361578821,), (1361578825,), (1361578827,), (1361578829,), (1361578831,), (1361578832,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'29052025': {'nb_upload': 37, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23432833]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1361578832, 1361578831, 1361578829, 1361578827, 1361578825, 1361578821, 1361578793, 1361578786, 1361578780, 1361578761, 1361578759, 1361578756, 1361578754, 1361578752, 1361578750] map_info['map_portfolio_photo'] : {23432833: [1361578832, 1361578831, 1361578829, 1361578827, 1361578825, 1361578821, 1361578793, 1361578786, 1361578780, 1361578761, 1361578759, 1361578756, 1361578754, 1361578752, 1361578750, 1361578732, 1361578730, 1361578728, 1361578726, 1361578721, 1361578689, 1361578684, 1361578682, 1361578668, 1361578666, 1361578663, 1361578662, 1361578661, 1361578660, 1361578639, 1361578636, 1361578633, 1361578611, 1361578609, 1361578608, 1361578602, 1361578597]} final : True mtd_id 4302 list_pids : [1361578832, 1361578831, 1361578829, 1361578827, 1361578825, 1361578821, 1361578793, 1361578786, 1361578780, 1361578761, 1361578759, 1361578756, 1361578754, 1361578752, 1361578750] Looping around the photos to save general results len do output : 1 /23432833Didn'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, '2981326') ('4302', '23432833', '1361578832', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578831', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578829', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578827', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578825', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578821', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578793', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578786', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578780', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578761', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578759', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578756', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578754', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578752', None, None, None, None, None, '2981326') ('4302', None, None, None, None, None, None, None, '2981326') ('4302', '23432833', '1361578750', None, None, None, None, None, '2981326') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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, '23432833', 'None', None, None, None, None, '2981326'), ('4302', '23432833', '1361578832', None, None, None, None, None, '2981326'), ('4302', '23432833', '1361578831', None, None, None, None, None, '2981326'), ('4302', '23432833', '1361578829', None, None, None, None, None, '2981326'), ('4302', '23432833', '1361578827', None, None, None, None, None, '2981326'), ('4302', '23432833', '1361578825', None, None, None, None, None, '2981326'), ('4302', '23432833', '1361578821', None, None, None, None, None, '2981326'), ('4302', '23432833', '1361578793', None, None, None, None, None, '2981326'), ('4302', '23432833', '1361578786', None, None, None, None, None, '2981326'), ('4302', '23432833', '1361578780', None, None, None, None, None, '2981326'), ('4302', '23432833', '1361578761', None, None, None, None, None, '2981326'), ('4302', '23432833', '1361578759', None, None, None, None, None, '2981326'), ('4302', '23432833', '1361578756', None, None, None, None, None, '2981326'), ('4302', '23432833', '1361578754', None, None, None, None, None, '2981326'), ('4302', '23432833', '1361578752', None, None, None, None, None, '2981326'), ('4302', '23432833', '1361578750', None, None, None, None, None, '2981326')] time used for this insertion : 0.017673730850219727 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.6468424797058105 time spend to save output : 0.01800227165222168 total time spend for step 5 : 0.6648447513580322 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 (2981326) 2.27user 2.26system 0:10.60elapsed 42%CPU (0avgtext+0avgdata 161544maxresident)k 984inputs+12440outputs (26major+75917minor)pagefaults 0swaps