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 : 1150727 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 (4021069) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4021069) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28343165 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4021069'] with mtr_portfolio_ids : ['28343165'] and first list_photo_ids : [] new path : /proc/1150727/ Name: python3 Umask: 0002 State: R (running) Tgid: 1150727 Ngid: 0 Pid: 1150727 PPid: 1150726 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1150727 NSpid: 1150727 NSpgid: 1149449 NSsid: 1149449 VmPeak: 1106908 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98680 kB VmRSS: 98680 kB RssAnon: 59900 kB RssFile: 38780 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 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: 59 nonvoluntary_ctxt_switches: 92 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1150727', 'Ngid': '0', 'Pid': '1150727', 'PPid': '1150726', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1150727', 'NSpid': '1150727', 'NSpgid': '1149449', 'NSsid': '1149449', 'VmPeak': '1106908 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98680 kB', 'VmRSS': '98680 kB', 'RssAnon': '59900 kB', 'RssFile': '38780 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', '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': '59', 'nonvoluntary_ctxt_switches': '92'} ('datou_batch_current', '1150727', '1106908', '0', '1106884', '865636', '98680', b'', 'marlene', '4021069') 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_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (28343165) 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 (4021069 ) ) 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 (28343165) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1393336711, 'portfolio_id': 28343165}, {'photo_id': 1393336706, 'portfolio_id': 28343165}, {'photo_id': 1393336703, 'portfolio_id': 28343165}, {'photo_id': 1393336702, 'portfolio_id': 28343165}, {'photo_id': 1393336700, 'portfolio_id': 28343165}, {'photo_id': 1393336689, 'portfolio_id': 28343165}, {'photo_id': 1393336687, 'portfolio_id': 28343165}, {'photo_id': 1393336683, 'portfolio_id': 28343165}, {'photo_id': 1393336679, 'portfolio_id': 28343165}, {'photo_id': 1393336667, 'portfolio_id': 28343165}, {'photo_id': 1393336645, 'portfolio_id': 28343165}, {'photo_id': 1393336452, 'portfolio_id': 28343165}, {'photo_id': 1393336447, 'portfolio_id': 28343165}, {'photo_id': 1393336441, 'portfolio_id': 28343165}, {'photo_id': 1393336437, 'portfolio_id': 28343165}, {'photo_id': 1393336434, 'portfolio_id': 28343165}, {'photo_id': 1393336140, 'portfolio_id': 28343165}, {'photo_id': 1393336102, 'portfolio_id': 28343165}, {'photo_id': 1393336068, 'portfolio_id': 28343165}, {'photo_id': 1393336036, 'portfolio_id': 28343165}, {'photo_id': 1393335722, 'portfolio_id': 28343165}, {'photo_id': 1393335718, 'portfolio_id': 28343165}, {'photo_id': 1393335706, 'portfolio_id': 28343165}, {'photo_id': 1393335687, 'portfolio_id': 28343165}, {'photo_id': 1393335420, 'portfolio_id': 28343165}, {'photo_id': 1393335410, 'portfolio_id': 28343165}, {'photo_id': 1393335407, 'portfolio_id': 28343165}, {'photo_id': 1393335406, 'portfolio_id': 28343165}, {'photo_id': 1393335405, 'portfolio_id': 28343165}, {'photo_id': 1393334672, 'portfolio_id': 28343165}, {'photo_id': 1393334578, 'portfolio_id': 28343165}, {'photo_id': 1393334492, 'portfolio_id': 28343165}, {'photo_id': 1393334406, 'portfolio_id': 28343165}, {'photo_id': 1393333954, 'portfolio_id': 28343165}, {'photo_id': 1393333913, 'portfolio_id': 28343165}, {'photo_id': 1393333846, 'portfolio_id': 28343165}] map_portfolio_id_photo_id: {28343165: [1393336711, 1393336706, 1393336703, 1393336702, 1393336700, 1393336689, 1393336687, 1393336683, 1393336679, 1393336667, 1393336645, 1393336452, 1393336447, 1393336441, 1393336437, 1393336434, 1393336140, 1393336102, 1393336068, 1393336036, 1393335722, 1393335718, 1393335706, 1393335687, 1393335420, 1393335410, 1393335407, 1393335406, 1393335405, 1393334672, 1393334578, 1393334492, 1393334406, 1393333954, 1393333913, 1393333846]} ##### 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.015898704528808594 #### 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 Sat Nov 8 03:08: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 (28343165) 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 : 28343165 get user id for portfolio 28343165 get sub ptf for main ptf 28343165, type 3726 and hashtags ['metal', 'flou', 'kraft', 'papier', 'mal_croppe', 'plastique', 'Carton_brun', 'environnement', 'autre_refus', 'Teint_Dans_La_Masse', '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`=28343165 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','flou','kraft','papier','mal_croppe','plastique','Carton_brun','environnement','autre_refus','Teint_Dans_La_Masse','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`=28343165 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','flou','kraft','papier','mal_croppe','plastique','Carton_brun','environnement','autre_refus','Teint_Dans_La_Masse','Carton_gris','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 28343165, 'sub_port_id': 28343185, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19189078, 'last_updated_at': datetime.datetime(2025, 11, 8, 3, 6, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 8, 3, 6, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 8, 3, 2, 57)}, 'environnement': {'main_port_id': 28343165, 'sub_port_id': 28343186, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19189079, 'last_updated_at': datetime.datetime(2025, 11, 8, 3, 6, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 8, 3, 6, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 8, 3, 2, 57)}, 'autre_refus': {'main_port_id': 28343165, 'sub_port_id': 28343187, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19189080, 'last_updated_at': datetime.datetime(2025, 11, 8, 3, 6, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 8, 3, 6, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 8, 3, 2, 57)}, 'papier': {'main_port_id': 28343165, 'sub_port_id': 28343188, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19189081, 'last_updated_at': datetime.datetime(2025, 11, 8, 3, 6, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 8, 3, 6, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 8, 3, 2, 57)}, 'Carton_brun': {'main_port_id': 28343165, 'sub_port_id': 28343189, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19189082, 'last_updated_at': datetime.datetime(2025, 11, 8, 3, 6, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 8, 3, 6, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 8, 3, 2, 57)}, 'kraft': {'main_port_id': 28343165, 'sub_port_id': 28343190, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19189083, 'last_updated_at': datetime.datetime(2025, 11, 8, 3, 6, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 8, 3, 6, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 8, 3, 2, 57)}, 'metal': {'main_port_id': 28343165, 'sub_port_id': 28343191, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19189084, 'last_updated_at': datetime.datetime(2025, 11, 8, 3, 6, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 8, 3, 6, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 8, 3, 2, 57)}, 'Carton_gris': {'main_port_id': 28343165, 'sub_port_id': 28343192, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19189085, 'last_updated_at': datetime.datetime(2025, 11, 8, 3, 6, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 8, 3, 6, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 8, 3, 2, 57)}, 'mal_croppe': {'main_port_id': 28343165, 'sub_port_id': 28343193, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19189086, 'last_updated_at': datetime.datetime(2025, 11, 8, 3, 6, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 8, 3, 6, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 8, 3, 2, 57)}, 'plastique': {'main_port_id': 28343165, 'sub_port_id': 28343194, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19189087, 'last_updated_at': datetime.datetime(2025, 11, 8, 3, 6, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 8, 3, 6, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 8, 3, 2, 57)}, 'flou': {'main_port_id': 28343165, 'sub_port_id': 28343195, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19189088, 'last_updated_at': datetime.datetime(2025, 11, 8, 3, 6, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 8, 3, 6, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 8, 3, 2, 57)}, 'cartonnette': {'main_port_id': 28343165, 'sub_port_id': 28343196, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19189089, 'last_updated_at': datetime.datetime(2025, 11, 8, 3, 6, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 8, 3, 6, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 8, 3, 2, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28343185 , 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=28343165 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 (28343185) result : ((1393335897,), (1393336233,), (1393336235,), (1393336237,), (1393336240,), (1393336243,), (1393336245,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28343165) result : ((1393333846,), (1393333913,), (1393333954,), (1393334406,), (1393334492,), (1393334578,), (1393334672,), (1393335405,), (1393335406,), (1393335407,), (1393335410,), (1393335420,), (1393335687,), (1393335706,), (1393335718,), (1393335722,), (1393336036,), (1393336068,), (1393336102,), (1393336140,), (1393336434,), (1393336437,), (1393336441,), (1393336447,), (1393336452,), (1393336645,), (1393336667,), (1393336679,), (1393336683,), (1393336687,), (1393336689,), (1393336700,), (1393336702,), (1393336703,), (1393336706,), (1393336711,)) 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 (1393336700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28343186 , 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=28343165 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 (28343186) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28343165) result : ((1393333846,), (1393333913,), (1393333954,), (1393334406,), (1393334492,), (1393334578,), (1393334672,), (1393335405,), (1393335406,), (1393335407,), (1393335410,), (1393335420,), (1393335687,), (1393335706,), (1393335718,), (1393335722,), (1393336036,), (1393336068,), (1393336102,), (1393336140,), (1393336434,), (1393336437,), (1393336441,), (1393336447,), (1393336452,), (1393336645,), (1393336667,), (1393336679,), (1393336683,), (1393336687,), (1393336689,), (1393336700,), (1393336702,), (1393336703,), (1393336706,), (1393336711,)) 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 (1393336700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28343187 , 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=28343165 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 (28343187) result : ((1393335906,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28343165) result : ((1393333846,), (1393333913,), (1393333954,), (1393334406,), (1393334492,), (1393334578,), (1393334672,), (1393335405,), (1393335406,), (1393335407,), (1393335410,), (1393335420,), (1393335687,), (1393335706,), (1393335718,), (1393335722,), (1393336036,), (1393336068,), (1393336102,), (1393336140,), (1393336434,), (1393336437,), (1393336441,), (1393336447,), (1393336452,), (1393336645,), (1393336667,), (1393336679,), (1393336683,), (1393336687,), (1393336689,), (1393336700,), (1393336702,), (1393336703,), (1393336706,), (1393336711,)) 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 (1393336700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28343188 , 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=28343165 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 (28343188) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28343165) result : ((1393333846,), (1393333913,), (1393333954,), (1393334406,), (1393334492,), (1393334578,), (1393334672,), (1393335405,), (1393335406,), (1393335407,), (1393335410,), (1393335420,), (1393335687,), (1393335706,), (1393335718,), (1393335722,), (1393336036,), (1393336068,), (1393336102,), (1393336140,), (1393336434,), (1393336437,), (1393336441,), (1393336447,), (1393336452,), (1393336645,), (1393336667,), (1393336679,), (1393336683,), (1393336687,), (1393336689,), (1393336700,), (1393336702,), (1393336703,), (1393336706,), (1393336711,)) 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 (1393336700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28343189 , 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=28343165 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 (28343189) result : ((1393335937,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28343165) result : ((1393333846,), (1393333913,), (1393333954,), (1393334406,), (1393334492,), (1393334578,), (1393334672,), (1393335405,), (1393335406,), (1393335407,), (1393335410,), (1393335420,), (1393335687,), (1393335706,), (1393335718,), (1393335722,), (1393336036,), (1393336068,), (1393336102,), (1393336140,), (1393336434,), (1393336437,), (1393336441,), (1393336447,), (1393336452,), (1393336645,), (1393336667,), (1393336679,), (1393336683,), (1393336687,), (1393336689,), (1393336700,), (1393336702,), (1393336703,), (1393336706,), (1393336711,)) 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 (1393336700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28343190 , 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=28343165 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 (28343190) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28343165) result : ((1393333846,), (1393333913,), (1393333954,), (1393334406,), (1393334492,), (1393334578,), (1393334672,), (1393335405,), (1393335406,), (1393335407,), (1393335410,), (1393335420,), (1393335687,), (1393335706,), (1393335718,), (1393335722,), (1393336036,), (1393336068,), (1393336102,), (1393336140,), (1393336434,), (1393336437,), (1393336441,), (1393336447,), (1393336452,), (1393336645,), (1393336667,), (1393336679,), (1393336683,), (1393336687,), (1393336689,), (1393336700,), (1393336702,), (1393336703,), (1393336706,), (1393336711,)) 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 (1393336700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28343191 , 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=28343165 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 (28343191) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28343165) result : ((1393333846,), (1393333913,), (1393333954,), (1393334406,), (1393334492,), (1393334578,), (1393334672,), (1393335405,), (1393335406,), (1393335407,), (1393335410,), (1393335420,), (1393335687,), (1393335706,), (1393335718,), (1393335722,), (1393336036,), (1393336068,), (1393336102,), (1393336140,), (1393336434,), (1393336437,), (1393336441,), (1393336447,), (1393336452,), (1393336645,), (1393336667,), (1393336679,), (1393336683,), (1393336687,), (1393336689,), (1393336700,), (1393336702,), (1393336703,), (1393336706,), (1393336711,)) 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 (1393336700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28343192 , 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=28343165 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 (28343192) result : ((1393335917,), (1393335919,), (1393336257,), (1393336259,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28343165) result : ((1393333846,), (1393333913,), (1393333954,), (1393334406,), (1393334492,), (1393334578,), (1393334672,), (1393335405,), (1393335406,), (1393335407,), (1393335410,), (1393335420,), (1393335687,), (1393335706,), (1393335718,), (1393335722,), (1393336036,), (1393336068,), (1393336102,), (1393336140,), (1393336434,), (1393336437,), (1393336441,), (1393336447,), (1393336452,), (1393336645,), (1393336667,), (1393336679,), (1393336683,), (1393336687,), (1393336689,), (1393336700,), (1393336702,), (1393336703,), (1393336706,), (1393336711,)) 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 (1393336700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28343193 , 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=28343165 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 (28343193) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28343165) result : ((1393333846,), (1393333913,), (1393333954,), (1393334406,), (1393334492,), (1393334578,), (1393334672,), (1393335405,), (1393335406,), (1393335407,), (1393335410,), (1393335420,), (1393335687,), (1393335706,), (1393335718,), (1393335722,), (1393336036,), (1393336068,), (1393336102,), (1393336140,), (1393336434,), (1393336437,), (1393336441,), (1393336447,), (1393336452,), (1393336645,), (1393336667,), (1393336679,), (1393336683,), (1393336687,), (1393336689,), (1393336700,), (1393336702,), (1393336703,), (1393336706,), (1393336711,)) 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 (1393336700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28343194 , 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=28343165 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 (28343194) result : ((1393335946,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28343165) result : ((1393333846,), (1393333913,), (1393333954,), (1393334406,), (1393334492,), (1393334578,), (1393334672,), (1393335405,), (1393335406,), (1393335407,), (1393335410,), (1393335420,), (1393335687,), (1393335706,), (1393335718,), (1393335722,), (1393336036,), (1393336068,), (1393336102,), (1393336140,), (1393336434,), (1393336437,), (1393336441,), (1393336447,), (1393336452,), (1393336645,), (1393336667,), (1393336679,), (1393336683,), (1393336687,), (1393336689,), (1393336700,), (1393336702,), (1393336703,), (1393336706,), (1393336711,)) 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 (1393336700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28343195 , 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=28343165 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 (28343195) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28343165) result : ((1393333846,), (1393333913,), (1393333954,), (1393334406,), (1393334492,), (1393334578,), (1393334672,), (1393335405,), (1393335406,), (1393335407,), (1393335410,), (1393335420,), (1393335687,), (1393335706,), (1393335718,), (1393335722,), (1393336036,), (1393336068,), (1393336102,), (1393336140,), (1393336434,), (1393336437,), (1393336441,), (1393336447,), (1393336452,), (1393336645,), (1393336667,), (1393336679,), (1393336683,), (1393336687,), (1393336689,), (1393336700,), (1393336702,), (1393336703,), (1393336706,), (1393336711,)) 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 (1393336700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28343196 , 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=28343165 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 (28343196) result : ((1393335928,), (1393336268,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28343165) result : ((1393333846,), (1393333913,), (1393333954,), (1393334406,), (1393334492,), (1393334578,), (1393334672,), (1393335405,), (1393335406,), (1393335407,), (1393335410,), (1393335420,), (1393335687,), (1393335706,), (1393335718,), (1393335722,), (1393336036,), (1393336068,), (1393336102,), (1393336140,), (1393336434,), (1393336437,), (1393336441,), (1393336447,), (1393336452,), (1393336645,), (1393336667,), (1393336679,), (1393336683,), (1393336687,), (1393336689,), (1393336700,), (1393336702,), (1393336703,), (1393336706,), (1393336711,)) 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 (1393336700) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28343165 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','flou','kraft','papier','mal_croppe','plastique','Carton_brun','environnement','autre_refus','Teint_Dans_La_Masse','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`=28343165 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','flou','kraft','papier','mal_croppe','plastique','Carton_brun','environnement','autre_refus','Teint_Dans_La_Masse','Carton_gris','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 28343165, 'sub_port_id': 28343198, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19189090, 'last_updated_at': datetime.datetime(2025, 11, 8, 3, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 8, 3, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 8, 3, 2, 59)}, 'environnement': {'main_port_id': 28343165, 'sub_port_id': 28343199, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19189091, 'last_updated_at': datetime.datetime(2025, 11, 8, 3, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 8, 3, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 8, 3, 2, 59)}, 'autre_refus': {'main_port_id': 28343165, 'sub_port_id': 28343200, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19189092, 'last_updated_at': datetime.datetime(2025, 11, 8, 3, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 8, 3, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 8, 3, 2, 59)}, 'papier': {'main_port_id': 28343165, 'sub_port_id': 28343201, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19189093, 'last_updated_at': datetime.datetime(2025, 11, 8, 3, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 8, 3, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 8, 3, 2, 59)}, 'Carton_brun': {'main_port_id': 28343165, 'sub_port_id': 28343202, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19189094, 'last_updated_at': datetime.datetime(2025, 11, 8, 3, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 8, 3, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 8, 3, 2, 59)}, 'kraft': {'main_port_id': 28343165, 'sub_port_id': 28343203, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19189095, 'last_updated_at': datetime.datetime(2025, 11, 8, 3, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 8, 3, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 8, 3, 2, 59)}, 'metal': {'main_port_id': 28343165, 'sub_port_id': 28343204, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19189096, 'last_updated_at': datetime.datetime(2025, 11, 8, 3, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 8, 3, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 8, 3, 2, 59)}, 'Carton_gris': {'main_port_id': 28343165, 'sub_port_id': 28343205, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19189097, 'last_updated_at': datetime.datetime(2025, 11, 8, 3, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 8, 3, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 8, 3, 2, 59)}, 'mal_croppe': {'main_port_id': 28343165, 'sub_port_id': 28343206, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19189098, 'last_updated_at': datetime.datetime(2025, 11, 8, 3, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 8, 3, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 8, 3, 2, 59)}, 'plastique': {'main_port_id': 28343165, 'sub_port_id': 28343207, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19189099, 'last_updated_at': datetime.datetime(2025, 11, 8, 3, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 8, 3, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 8, 3, 2, 59)}, 'flou': {'main_port_id': 28343165, 'sub_port_id': 28343208, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19189100, 'last_updated_at': datetime.datetime(2025, 11, 8, 3, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 8, 3, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 8, 3, 2, 59)}, 'cartonnette': {'main_port_id': 28343165, 'sub_port_id': 28343209, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19189101, 'last_updated_at': datetime.datetime(2025, 11, 8, 3, 6, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 8, 3, 6, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 8, 3, 2, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28343198,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28343185 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28343199,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28343186 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28343200,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28343187 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28343201,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28343188 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28343202,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28343189 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28343203,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28343190 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28343204,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28343191 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28343205,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28343192 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28343206,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28343193 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28343207,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28343194 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28343208,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28343195 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28343209,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28343196 lien utilise dans velours : https://marlene.fotonower.com/velours/28343198,28343199,28343200,28343201,28343202,28343203,28343204,28343205,28343206,28343207,28343208,28343209?tags=Teint_Dans_La_Masse,environnement,autre_refus,papier,Carton_brun,kraft,metal,Carton_gris,mal_croppe,plastique,flou,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28343165]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1393336711, 1393336706, 1393336703, 1393336702, 1393336700, 1393336689, 1393336687, 1393336683, 1393336679, 1393336667, 1393336645, 1393336452, 1393336447, 1393336441, 1393336437, 1393336434] map_info['map_portfolio_photo'] : {28343165: [1393336711, 1393336706, 1393336703, 1393336702, 1393336700, 1393336689, 1393336687, 1393336683, 1393336679, 1393336667, 1393336645, 1393336452, 1393336447, 1393336441, 1393336437, 1393336434, 1393336140, 1393336102, 1393336068, 1393336036, 1393335722, 1393335718, 1393335706, 1393335687, 1393335420, 1393335410, 1393335407, 1393335406, 1393335405, 1393334672, 1393334578, 1393334492, 1393334406, 1393333954, 1393333913, 1393333846]} final : False mtd_id 4302 list_pids : [1393336711, 1393336706, 1393336703, 1393336702, 1393336700, 1393336689, 1393336687, 1393336683, 1393336679, 1393336667, 1393336645, 1393336452, 1393336447, 1393336441, 1393336437, 1393336434] Looping around the photos to save general results len do output : 1 /28343165. 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, '4021069') ('4302', '28343165', '1393336711', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336706', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336703', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336702', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336700', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336689', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336687', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336683', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336679', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336667', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336645', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336452', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336447', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336441', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336437', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336434', None, None, None, None, None, '4021069') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 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, '28343165', "{'Teint_Dans_La_Masse': 28343185, 'environnement': 28343186, 'autre_refus': 28343187, 'papier': 28343188, 'Carton_brun': 28343189, 'kraft': 28343190, 'metal': 28343191, 'Carton_gris': 28343192, 'mal_croppe': 28343193, 'plastique': 28343194, 'flou': 28343195, 'cartonnette': 28343196}", None, None, None, None, '4021069'), ('4302', '28343165', '1393336711', None, None, None, None, None, '4021069'), ('4302', '28343165', '1393336706', None, None, None, None, None, '4021069'), ('4302', '28343165', '1393336703', None, None, None, None, None, '4021069'), ('4302', '28343165', '1393336702', None, None, None, None, None, '4021069'), ('4302', '28343165', '1393336700', None, None, None, None, None, '4021069'), ('4302', '28343165', '1393336689', None, None, None, None, None, '4021069'), ('4302', '28343165', '1393336687', None, None, None, None, None, '4021069'), ('4302', '28343165', '1393336683', None, None, None, None, None, '4021069'), ('4302', '28343165', '1393336679', None, None, None, None, None, '4021069'), ('4302', '28343165', '1393336667', None, None, None, None, None, '4021069'), ('4302', '28343165', '1393336645', None, None, None, None, None, '4021069'), ('4302', '28343165', '1393336452', None, None, None, None, None, '4021069'), ('4302', '28343165', '1393336447', None, None, None, None, None, '4021069'), ('4302', '28343165', '1393336441', None, None, None, None, None, '4021069'), ('4302', '28343165', '1393336437', None, None, None, None, None, '4021069'), ('4302', '28343165', '1393336434', None, None, None, None, None, '4021069')] time used for this insertion : 0.016188621520996094 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4189479351043701 time spend to save output : 0.016434431076049805 total time spend for step 1 : 0.4353823661804199 step2:final Sat Nov 8 03:08: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 (28343165) 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 28343165 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1393333954,1393333913,1393333846,1393334672,1393334578,1393334492,1393334406,1393335420,1393335410,1393335407,1393335406,1393335405,1393335722,1393335718,1393335706,1393335687,1393336140,1393336102,1393336068,1393336036,1393336452,1393336447,1393336441,1393336437,1393336434,1393336689,1393336687,1393336683,1393336679,1393336667,1393336645,1393336711,1393336706,1393336703,1393336702,1393336700); 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([28343165]) Inside saveOutput : final : False verbose : True original output for save of step final : {1393336711: ('0.10938329780791069',), 1393336706: ('0.10938329780791069',), 1393336703: ('0.10938329780791069',), 1393336702: ('0.10938329780791069',), 1393336700: ('0.10938329780791069',), 1393336689: ('0.10938329780791069',), 1393336687: ('0.10938329780791069',), 1393336683: ('0.10938329780791069',), 1393336679: ('0.10938329780791069',), 1393336667: ('0.10938329780791069',), 1393336645: ('0.10938329780791069',), 1393336452: ('0.10938329780791069',), 1393336447: ('0.10938329780791069',), 1393336441: ('0.10938329780791069',), 1393336437: ('0.10938329780791069',), 1393336434: ('0.10938329780791069',)} new output for save of step final : {1393336711: ('0.10938329780791069',), 1393336706: ('0.10938329780791069',), 1393336703: ('0.10938329780791069',), 1393336702: ('0.10938329780791069',), 1393336700: ('0.10938329780791069',), 1393336689: ('0.10938329780791069',), 1393336687: ('0.10938329780791069',), 1393336683: ('0.10938329780791069',), 1393336679: ('0.10938329780791069',), 1393336667: ('0.10938329780791069',), 1393336645: ('0.10938329780791069',), 1393336452: ('0.10938329780791069',), 1393336447: ('0.10938329780791069',), 1393336441: ('0.10938329780791069',), 1393336437: ('0.10938329780791069',), 1393336434: ('0.10938329780791069',)} [1393336711, 1393336706, 1393336703, 1393336702, 1393336700, 1393336689, 1393336687, 1393336683, 1393336679, 1393336667, 1393336645, 1393336452, 1393336447, 1393336441, 1393336437, 1393336434] map_info['map_portfolio_photo'] : {28343165: [1393336711, 1393336706, 1393336703, 1393336702, 1393336700, 1393336689, 1393336687, 1393336683, 1393336679, 1393336667, 1393336645, 1393336452, 1393336447, 1393336441, 1393336437, 1393336434, 1393336140, 1393336102, 1393336068, 1393336036, 1393335722, 1393335718, 1393335706, 1393335687, 1393335420, 1393335410, 1393335407, 1393335406, 1393335405, 1393334672, 1393334578, 1393334492, 1393334406, 1393333954, 1393333913, 1393333846]} final : False mtd_id 4302 list_pids : [1393336711, 1393336706, 1393336703, 1393336702, 1393336700, 1393336689, 1393336687, 1393336683, 1393336679, 1393336667, 1393336645, 1393336452, 1393336447, 1393336441, 1393336437, 1393336434] Looping around the photos to save general results len do output : 16 /1393336711.Didn't retrieve data . /1393336706.Didn't retrieve data . /1393336703.Didn't retrieve data . /1393336702.Didn't retrieve data . /1393336700.Didn't retrieve data . /1393336689.Didn't retrieve data . /1393336687.Didn't retrieve data . /1393336683.Didn't retrieve data . /1393336679.Didn't retrieve data . /1393336667.Didn't retrieve data . /1393336645.Didn't retrieve data . /1393336452.Didn't retrieve data . /1393336447.Didn't retrieve data . /1393336441.Didn't retrieve data . /1393336437.Didn't retrieve data . /1393336434.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, '4021069') ('4302', '28343165', '1393336711', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336706', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336703', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336702', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336700', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336689', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336687', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336683', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336679', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336667', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336645', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336452', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336447', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336441', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336437', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336434', None, None, None, None, None, '4021069') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 48 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', '28343165', '1393336711', '0.10938329780791069', None, None, None, None, '4021069'), ('4302', '28343165', '1393336706', '0.10938329780791069', None, None, None, None, '4021069'), ('4302', '28343165', '1393336703', '0.10938329780791069', None, None, None, None, '4021069'), ('4302', '28343165', '1393336702', '0.10938329780791069', None, None, None, None, '4021069'), ('4302', '28343165', '1393336700', '0.10938329780791069', None, None, None, None, '4021069'), ('4302', '28343165', '1393336689', '0.10938329780791069', None, None, None, None, '4021069'), ('4302', '28343165', '1393336687', '0.10938329780791069', None, None, None, None, '4021069'), ('4302', '28343165', '1393336683', '0.10938329780791069', None, None, None, None, '4021069'), ('4302', '28343165', '1393336679', '0.10938329780791069', None, None, None, None, '4021069'), ('4302', '28343165', '1393336667', '0.10938329780791069', None, None, None, None, '4021069'), ('4302', '28343165', '1393336645', '0.10938329780791069', None, None, None, None, '4021069'), ('4302', '28343165', '1393336452', '0.10938329780791069', None, None, None, None, '4021069'), ('4302', '28343165', '1393336447', '0.10938329780791069', None, None, None, None, '4021069'), ('4302', '28343165', '1393336441', '0.10938329780791069', None, None, None, None, '4021069'), ('4302', '28343165', '1393336437', '0.10938329780791069', None, None, None, None, '4021069'), ('4302', '28343165', '1393336434', '0.10938329780791069', None, None, None, None, '4021069')] time used for this insertion : 0.017390727996826172 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06006669998168945 time spend to save output : 0.01799154281616211 total time spend for step 2 : 0.07805824279785156 step3:velours_tree Sat Nov 8 03:08: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 : {28343165: [{'Teint_Dans_La_Masse': 28343185, 'environnement': 28343186, 'autre_refus': 28343187, 'papier': 28343188, 'Carton_brun': 28343189, 'kraft': 28343190, 'metal': 28343191, 'Carton_gris': 28343192, 'mal_croppe': 28343193, 'plastique': 28343194, 'flou': 28343195, 'cartonnette': 28343196}]} input_args_next_step : {28343165: ()} output_args : {28343165: [{'Teint_Dans_La_Masse': 28343185, 'environnement': 28343186, 'autre_refus': 28343187, 'papier': 28343188, 'Carton_brun': 28343189, 'kraft': 28343190, 'metal': 28343191, 'Carton_gris': 28343192, 'mal_croppe': 28343193, 'plastique': 28343194, 'flou': 28343195, 'cartonnette': 28343196}]} args : 28343165 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Teint_Dans_La_Masse': 28343185, 'environnement': 28343186, 'autre_refus': 28343187, 'papier': 28343188, 'Carton_brun': 28343189, 'kraft': 28343190, 'metal': 28343191, 'Carton_gris': 28343192, 'mal_croppe': 28343193, 'plastique': 28343194, 'flou': 28343195, 'cartonnette': 28343196},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28343165) 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([28343165]) 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.31087255477905273 time spend to save output : 5.245208740234375e-05 total time spend for step 3 : 0.3109250068664551 step4:send_mail_cod Sat Nov 8 03:08:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1393336711: ('0.10938329780791069',), 1393336706: ('0.10938329780791069',), 1393336703: ('0.10938329780791069',), 1393336702: ('0.10938329780791069',), 1393336700: ('0.10938329780791069',), 1393336689: ('0.10938329780791069',), 1393336687: ('0.10938329780791069',), 1393336683: ('0.10938329780791069',), 1393336679: ('0.10938329780791069',), 1393336667: ('0.10938329780791069',), 1393336645: ('0.10938329780791069',), 1393336452: ('0.10938329780791069',), 1393336447: ('0.10938329780791069',), 1393336441: ('0.10938329780791069',), 1393336437: ('0.10938329780791069',), 1393336434: ('0.10938329780791069',)} input_args_next_step : {1393336711: ()} output_args : {1393336711: ('0.10938329780791069',), 1393336706: ('0.10938329780791069',), 1393336703: ('0.10938329780791069',), 1393336702: ('0.10938329780791069',), 1393336700: ('0.10938329780791069',), 1393336689: ('0.10938329780791069',), 1393336687: ('0.10938329780791069',), 1393336683: ('0.10938329780791069',), 1393336679: ('0.10938329780791069',), 1393336667: ('0.10938329780791069',), 1393336645: ('0.10938329780791069',), 1393336452: ('0.10938329780791069',), 1393336447: ('0.10938329780791069',), 1393336441: ('0.10938329780791069',), 1393336437: ('0.10938329780791069',), 1393336434: ('0.10938329780791069',)} args : 1393336711 depend.output_id : 0 input_args_next_step : {1393336711: ('0.10938329780791069',), 1393336706: ()} output_args : {1393336711: ('0.10938329780791069',), 1393336706: ('0.10938329780791069',), 1393336703: ('0.10938329780791069',), 1393336702: ('0.10938329780791069',), 1393336700: ('0.10938329780791069',), 1393336689: ('0.10938329780791069',), 1393336687: ('0.10938329780791069',), 1393336683: ('0.10938329780791069',), 1393336679: ('0.10938329780791069',), 1393336667: ('0.10938329780791069',), 1393336645: ('0.10938329780791069',), 1393336452: ('0.10938329780791069',), 1393336447: ('0.10938329780791069',), 1393336441: ('0.10938329780791069',), 1393336437: ('0.10938329780791069',), 1393336434: ('0.10938329780791069',)} args : 1393336706 depend.output_id : 0 input_args_next_step : {1393336711: ('0.10938329780791069',), 1393336706: ('0.10938329780791069',), 1393336703: ()} output_args : {1393336711: ('0.10938329780791069',), 1393336706: ('0.10938329780791069',), 1393336703: ('0.10938329780791069',), 1393336702: ('0.10938329780791069',), 1393336700: ('0.10938329780791069',), 1393336689: ('0.10938329780791069',), 1393336687: ('0.10938329780791069',), 1393336683: ('0.10938329780791069',), 1393336679: ('0.10938329780791069',), 1393336667: ('0.10938329780791069',), 1393336645: ('0.10938329780791069',), 1393336452: ('0.10938329780791069',), 1393336447: ('0.10938329780791069',), 1393336441: ('0.10938329780791069',), 1393336437: ('0.10938329780791069',), 1393336434: ('0.10938329780791069',)} args : 1393336703 depend.output_id : 0 input_args_next_step : {1393336711: ('0.10938329780791069',), 1393336706: ('0.10938329780791069',), 1393336703: ('0.10938329780791069',), 1393336702: ()} output_args : {1393336711: ('0.10938329780791069',), 1393336706: ('0.10938329780791069',), 1393336703: ('0.10938329780791069',), 1393336702: ('0.10938329780791069',), 1393336700: ('0.10938329780791069',), 1393336689: ('0.10938329780791069',), 1393336687: ('0.10938329780791069',), 1393336683: ('0.10938329780791069',), 1393336679: ('0.10938329780791069',), 1393336667: ('0.10938329780791069',), 1393336645: ('0.10938329780791069',), 1393336452: ('0.10938329780791069',), 1393336447: ('0.10938329780791069',), 1393336441: ('0.10938329780791069',), 1393336437: ('0.10938329780791069',), 1393336434: ('0.10938329780791069',)} args : 1393336702 depend.output_id : 0 input_args_next_step : {1393336711: ('0.10938329780791069',), 1393336706: ('0.10938329780791069',), 1393336703: ('0.10938329780791069',), 1393336702: ('0.10938329780791069',), 1393336700: ()} output_args : {1393336711: ('0.10938329780791069',), 1393336706: ('0.10938329780791069',), 1393336703: ('0.10938329780791069',), 1393336702: ('0.10938329780791069',), 1393336700: ('0.10938329780791069',), 1393336689: ('0.10938329780791069',), 1393336687: ('0.10938329780791069',), 1393336683: ('0.10938329780791069',), 1393336679: ('0.10938329780791069',), 1393336667: ('0.10938329780791069',), 1393336645: ('0.10938329780791069',), 1393336452: ('0.10938329780791069',), 1393336447: ('0.10938329780791069',), 1393336441: ('0.10938329780791069',), 1393336437: ('0.10938329780791069',), 1393336434: ('0.10938329780791069',)} args : 1393336700 depend.output_id : 0 input_args_next_step : {1393336711: ('0.10938329780791069',), 1393336706: ('0.10938329780791069',), 1393336703: ('0.10938329780791069',), 1393336702: ('0.10938329780791069',), 1393336700: ('0.10938329780791069',), 1393336689: ()} output_args : {1393336711: ('0.10938329780791069',), 1393336706: ('0.10938329780791069',), 1393336703: ('0.10938329780791069',), 1393336702: ('0.10938329780791069',), 1393336700: ('0.10938329780791069',), 1393336689: ('0.10938329780791069',), 1393336687: ('0.10938329780791069',), 1393336683: ('0.10938329780791069',), 1393336679: ('0.10938329780791069',), 1393336667: ('0.10938329780791069',), 1393336645: ('0.10938329780791069',), 1393336452: ('0.10938329780791069',), 1393336447: ('0.10938329780791069',), 1393336441: ('0.10938329780791069',), 1393336437: ('0.10938329780791069',), 1393336434: ('0.10938329780791069',)} args : 1393336689 depend.output_id : 0 input_args_next_step : {1393336711: ('0.10938329780791069',), 1393336706: ('0.10938329780791069',), 1393336703: ('0.10938329780791069',), 1393336702: ('0.10938329780791069',), 1393336700: ('0.10938329780791069',), 1393336689: ('0.10938329780791069',), 1393336687: ()} output_args : {1393336711: ('0.10938329780791069',), 1393336706: ('0.10938329780791069',), 1393336703: ('0.10938329780791069',), 1393336702: ('0.10938329780791069',), 1393336700: ('0.10938329780791069',), 1393336689: ('0.10938329780791069',), 1393336687: ('0.10938329780791069',), 1393336683: ('0.10938329780791069',), 1393336679: ('0.10938329780791069',), 1393336667: ('0.10938329780791069',), 1393336645: ('0.10938329780791069',), 1393336452: ('0.10938329780791069',), 1393336447: ('0.10938329780791069',), 1393336441: ('0.10938329780791069',), 1393336437: ('0.10938329780791069',), 1393336434: ('0.10938329780791069',)} args : 1393336687 depend.output_id : 0 input_args_next_step : {1393336711: ('0.10938329780791069',), 1393336706: ('0.10938329780791069',), 1393336703: ('0.10938329780791069',), 1393336702: ('0.10938329780791069',), 1393336700: ('0.10938329780791069',), 1393336689: ('0.10938329780791069',), 1393336687: ('0.10938329780791069',), 1393336683: ()} output_args : {1393336711: ('0.10938329780791069',), 1393336706: ('0.10938329780791069',), 1393336703: ('0.10938329780791069',), 1393336702: ('0.10938329780791069',), 1393336700: ('0.10938329780791069',), 1393336689: ('0.10938329780791069',), 1393336687: ('0.10938329780791069',), 1393336683: ('0.10938329780791069',), 1393336679: ('0.10938329780791069',), 1393336667: ('0.10938329780791069',), 1393336645: ('0.10938329780791069',), 1393336452: ('0.10938329780791069',), 1393336447: ('0.10938329780791069',), 1393336441: ('0.10938329780791069',), 1393336437: ('0.10938329780791069',), 1393336434: ('0.10938329780791069',)} args : 1393336683 depend.output_id : 0 input_args_next_step : {1393336711: ('0.10938329780791069',), 1393336706: ('0.10938329780791069',), 1393336703: ('0.10938329780791069',), 1393336702: ('0.10938329780791069',), 1393336700: ('0.10938329780791069',), 1393336689: ('0.10938329780791069',), 1393336687: ('0.10938329780791069',), 1393336683: ('0.10938329780791069',), 1393336679: ()} output_args : {1393336711: ('0.10938329780791069',), 1393336706: ('0.10938329780791069',), 1393336703: ('0.10938329780791069',), 1393336702: ('0.10938329780791069',), 1393336700: ('0.10938329780791069',), 1393336689: ('0.10938329780791069',), 1393336687: ('0.10938329780791069',), 1393336683: ('0.10938329780791069',), 1393336679: ('0.10938329780791069',), 1393336667: ('0.10938329780791069',), 1393336645: ('0.10938329780791069',), 1393336452: ('0.10938329780791069',), 1393336447: ('0.10938329780791069',), 1393336441: ('0.10938329780791069',), 1393336437: ('0.10938329780791069',), 1393336434: ('0.10938329780791069',)} args : 1393336679 depend.output_id : 0 input_args_next_step : {1393336711: ('0.10938329780791069',), 1393336706: ('0.10938329780791069',), 1393336703: ('0.10938329780791069',), 1393336702: ('0.10938329780791069',), 1393336700: ('0.10938329780791069',), 1393336689: ('0.10938329780791069',), 1393336687: ('0.10938329780791069',), 1393336683: ('0.10938329780791069',), 1393336679: ('0.10938329780791069',), 1393336667: ()} output_args : {1393336711: ('0.10938329780791069',), 1393336706: ('0.10938329780791069',), 1393336703: ('0.10938329780791069',), 1393336702: ('0.10938329780791069',), 1393336700: ('0.10938329780791069',), 1393336689: ('0.10938329780791069',), 1393336687: ('0.10938329780791069',), 1393336683: ('0.10938329780791069',), 1393336679: ('0.10938329780791069',), 1393336667: ('0.10938329780791069',), 1393336645: ('0.10938329780791069',), 1393336452: ('0.10938329780791069',), 1393336447: ('0.10938329780791069',), 1393336441: ('0.10938329780791069',), 1393336437: ('0.10938329780791069',), 1393336434: ('0.10938329780791069',)} args : 1393336667 depend.output_id : 0 input_args_next_step : {1393336711: ('0.10938329780791069',), 1393336706: ('0.10938329780791069',), 1393336703: ('0.10938329780791069',), 1393336702: ('0.10938329780791069',), 1393336700: ('0.10938329780791069',), 1393336689: ('0.10938329780791069',), 1393336687: ('0.10938329780791069',), 1393336683: ('0.10938329780791069',), 1393336679: ('0.10938329780791069',), 1393336667: ('0.10938329780791069',), 1393336645: ()} output_args : {1393336711: ('0.10938329780791069',), 1393336706: ('0.10938329780791069',), 1393336703: ('0.10938329780791069',), 1393336702: ('0.10938329780791069',), 1393336700: ('0.10938329780791069',), 1393336689: ('0.10938329780791069',), 1393336687: ('0.10938329780791069',), 1393336683: ('0.10938329780791069',), 1393336679: ('0.10938329780791069',), 1393336667: ('0.10938329780791069',), 1393336645: ('0.10938329780791069',), 1393336452: ('0.10938329780791069',), 1393336447: ('0.10938329780791069',), 1393336441: ('0.10938329780791069',), 1393336437: ('0.10938329780791069',), 1393336434: ('0.10938329780791069',)} args : 1393336645 depend.output_id : 0 input_args_next_step : {1393336711: ('0.10938329780791069',), 1393336706: ('0.10938329780791069',), 1393336703: ('0.10938329780791069',), 1393336702: ('0.10938329780791069',), 1393336700: ('0.10938329780791069',), 1393336689: ('0.10938329780791069',), 1393336687: ('0.10938329780791069',), 1393336683: ('0.10938329780791069',), 1393336679: ('0.10938329780791069',), 1393336667: ('0.10938329780791069',), 1393336645: ('0.10938329780791069',), 1393336452: ()} output_args : {1393336711: ('0.10938329780791069',), 1393336706: ('0.10938329780791069',), 1393336703: ('0.10938329780791069',), 1393336702: ('0.10938329780791069',), 1393336700: ('0.10938329780791069',), 1393336689: ('0.10938329780791069',), 1393336687: ('0.10938329780791069',), 1393336683: ('0.10938329780791069',), 1393336679: ('0.10938329780791069',), 1393336667: ('0.10938329780791069',), 1393336645: ('0.10938329780791069',), 1393336452: ('0.10938329780791069',), 1393336447: ('0.10938329780791069',), 1393336441: ('0.10938329780791069',), 1393336437: ('0.10938329780791069',), 1393336434: ('0.10938329780791069',)} args : 1393336452 depend.output_id : 0 input_args_next_step : {1393336711: ('0.10938329780791069',), 1393336706: ('0.10938329780791069',), 1393336703: ('0.10938329780791069',), 1393336702: ('0.10938329780791069',), 1393336700: ('0.10938329780791069',), 1393336689: ('0.10938329780791069',), 1393336687: ('0.10938329780791069',), 1393336683: ('0.10938329780791069',), 1393336679: ('0.10938329780791069',), 1393336667: ('0.10938329780791069',), 1393336645: ('0.10938329780791069',), 1393336452: ('0.10938329780791069',), 1393336447: ()} output_args : {1393336711: ('0.10938329780791069',), 1393336706: ('0.10938329780791069',), 1393336703: ('0.10938329780791069',), 1393336702: ('0.10938329780791069',), 1393336700: ('0.10938329780791069',), 1393336689: ('0.10938329780791069',), 1393336687: ('0.10938329780791069',), 1393336683: ('0.10938329780791069',), 1393336679: ('0.10938329780791069',), 1393336667: ('0.10938329780791069',), 1393336645: ('0.10938329780791069',), 1393336452: ('0.10938329780791069',), 1393336447: ('0.10938329780791069',), 1393336441: ('0.10938329780791069',), 1393336437: ('0.10938329780791069',), 1393336434: ('0.10938329780791069',)} args : 1393336447 depend.output_id : 0 input_args_next_step : {1393336711: ('0.10938329780791069',), 1393336706: ('0.10938329780791069',), 1393336703: ('0.10938329780791069',), 1393336702: ('0.10938329780791069',), 1393336700: ('0.10938329780791069',), 1393336689: ('0.10938329780791069',), 1393336687: ('0.10938329780791069',), 1393336683: ('0.10938329780791069',), 1393336679: ('0.10938329780791069',), 1393336667: ('0.10938329780791069',), 1393336645: ('0.10938329780791069',), 1393336452: ('0.10938329780791069',), 1393336447: ('0.10938329780791069',), 1393336441: ()} output_args : {1393336711: ('0.10938329780791069',), 1393336706: ('0.10938329780791069',), 1393336703: ('0.10938329780791069',), 1393336702: ('0.10938329780791069',), 1393336700: ('0.10938329780791069',), 1393336689: ('0.10938329780791069',), 1393336687: ('0.10938329780791069',), 1393336683: ('0.10938329780791069',), 1393336679: ('0.10938329780791069',), 1393336667: ('0.10938329780791069',), 1393336645: ('0.10938329780791069',), 1393336452: ('0.10938329780791069',), 1393336447: ('0.10938329780791069',), 1393336441: ('0.10938329780791069',), 1393336437: ('0.10938329780791069',), 1393336434: ('0.10938329780791069',)} args : 1393336441 depend.output_id : 0 input_args_next_step : {1393336711: ('0.10938329780791069',), 1393336706: ('0.10938329780791069',), 1393336703: ('0.10938329780791069',), 1393336702: ('0.10938329780791069',), 1393336700: ('0.10938329780791069',), 1393336689: ('0.10938329780791069',), 1393336687: ('0.10938329780791069',), 1393336683: ('0.10938329780791069',), 1393336679: ('0.10938329780791069',), 1393336667: ('0.10938329780791069',), 1393336645: ('0.10938329780791069',), 1393336452: ('0.10938329780791069',), 1393336447: ('0.10938329780791069',), 1393336441: ('0.10938329780791069',), 1393336437: ()} output_args : {1393336711: ('0.10938329780791069',), 1393336706: ('0.10938329780791069',), 1393336703: ('0.10938329780791069',), 1393336702: ('0.10938329780791069',), 1393336700: ('0.10938329780791069',), 1393336689: ('0.10938329780791069',), 1393336687: ('0.10938329780791069',), 1393336683: ('0.10938329780791069',), 1393336679: ('0.10938329780791069',), 1393336667: ('0.10938329780791069',), 1393336645: ('0.10938329780791069',), 1393336452: ('0.10938329780791069',), 1393336447: ('0.10938329780791069',), 1393336441: ('0.10938329780791069',), 1393336437: ('0.10938329780791069',), 1393336434: ('0.10938329780791069',)} args : 1393336437 depend.output_id : 0 input_args_next_step : {1393336711: ('0.10938329780791069',), 1393336706: ('0.10938329780791069',), 1393336703: ('0.10938329780791069',), 1393336702: ('0.10938329780791069',), 1393336700: ('0.10938329780791069',), 1393336689: ('0.10938329780791069',), 1393336687: ('0.10938329780791069',), 1393336683: ('0.10938329780791069',), 1393336679: ('0.10938329780791069',), 1393336667: ('0.10938329780791069',), 1393336645: ('0.10938329780791069',), 1393336452: ('0.10938329780791069',), 1393336447: ('0.10938329780791069',), 1393336441: ('0.10938329780791069',), 1393336437: ('0.10938329780791069',), 1393336434: ()} output_args : {1393336711: ('0.10938329780791069',), 1393336706: ('0.10938329780791069',), 1393336703: ('0.10938329780791069',), 1393336702: ('0.10938329780791069',), 1393336700: ('0.10938329780791069',), 1393336689: ('0.10938329780791069',), 1393336687: ('0.10938329780791069',), 1393336683: ('0.10938329780791069',), 1393336679: ('0.10938329780791069',), 1393336667: ('0.10938329780791069',), 1393336645: ('0.10938329780791069',), 1393336452: ('0.10938329780791069',), 1393336447: ('0.10938329780791069',), 1393336441: ('0.10938329780791069',), 1393336437: ('0.10938329780791069',), 1393336434: ('0.10938329780791069',)} args : 1393336434 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 : {28343165: [{'Teint_Dans_La_Masse': 28343185, 'environnement': 28343186, 'autre_refus': 28343187, 'papier': 28343188, 'Carton_brun': 28343189, 'kraft': 28343190, 'metal': 28343191, 'Carton_gris': 28343192, 'mal_croppe': 28343193, 'plastique': 28343194, 'flou': 28343195, 'cartonnette': 28343196}]} input_args_next_step : {1393336711: ('0.10938329780791069',), 1393336706: ('0.10938329780791069',), 1393336703: ('0.10938329780791069',), 1393336702: ('0.10938329780791069',), 1393336700: ('0.10938329780791069',), 1393336689: ('0.10938329780791069',), 1393336687: ('0.10938329780791069',), 1393336683: ('0.10938329780791069',), 1393336679: ('0.10938329780791069',), 1393336667: ('0.10938329780791069',), 1393336645: ('0.10938329780791069',), 1393336452: ('0.10938329780791069',), 1393336447: ('0.10938329780791069',), 1393336441: ('0.10938329780791069',), 1393336437: ('0.10938329780791069',), 1393336434: ('0.10938329780791069',), 28343165: ()} output_args : {28343165: [{'Teint_Dans_La_Masse': 28343185, 'environnement': 28343186, 'autre_refus': 28343187, 'papier': 28343188, 'Carton_brun': 28343189, 'kraft': 28343190, 'metal': 28343191, 'Carton_gris': 28343192, 'mal_croppe': 28343193, 'plastique': 28343194, 'flou': 28343195, 'cartonnette': 28343196}]} args : 28343165 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 :17, first value : ('0.10938329780791069',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28343165) 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_view ph WHERE photo_id IN (1393336711,1393336706,1393336703,1393336702,1393336700,1393336689,1393336687,1393336683,1393336679,1393336667,1393336645,1393336452,1393336447,1393336441,1393336437,1393336434) Found this number of photos: 16 ##### Call download_photos : nb_thread : 5 begin to download photo : 1393336434 begin to download photo : 1393336452 begin to download photo : 1393336683 begin to download photo : 1393336702 download finish for photo 1393336452 begin to download photo : 1393336645 download finish for photo 1393336683 begin to download photo : 1393336687 download finish for photo 1393336434 begin to download photo : 1393336437 download finish for photo 1393336702 begin to download photo : 1393336703 download finish for photo 1393336645 begin to download photo : 1393336667 download finish for photo 1393336687 begin to download photo : 1393336689 download finish for photo 1393336437 begin to download photo : 1393336441 download finish for photo 1393336703 begin to download photo : 1393336706 download finish for photo 1393336667 begin to download photo : 1393336679 download finish for photo 1393336689 begin to download photo : 1393336700 download finish for photo 1393336441 begin to download photo : 1393336447 download finish for photo 1393336706 begin to download photo : 1393336711 download finish for photo 1393336447 download finish for photo 1393336679 download finish for photo 1393336700 download finish for photo 1393336711 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 : 16 ; length of list_pids : 16 ; length of list_args : 16 results_Auto_P28343165_08-11-2025_03_09_00.pdf 28343187 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28343187 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393335906: '1762567467_1183520_1393334492_3829bb9a316a2cbd19fb6dee1113c6ee_rle_crop_4026725316_0.png'} change filename to text .imagette283431871762567740/ imagette283431871762567740/1762567467_1183520_1393334492_3829bb9a316a2cbd19fb6dee1113c6ee_rle_crop_4026725316_0.png.png imagette283431901762567740/ imagette283431911762567740/ imagette283431931762567740/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/af9e38afb385deb553d213cb58fbc712_28820477.png imagette283431871762567740 28343190 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28343190 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette283431901762567740 28343191 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28343191 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette283431911762567740 28343193 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28343193 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette283431931762567740 28343194 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28343194 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393335946: '1762567467_1183520_1393334492_3829bb9a316a2cbd19fb6dee1113c6ee_rle_crop_4026725318_0.png'} change filename to text .imagette283431941762567740/ imagette283431941762567740/1762567467_1183520_1393334492_3829bb9a316a2cbd19fb6dee1113c6ee_rle_crop_4026725318_0.png.png imagette283431951762567740/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/a46b59fb17c71d4f85551fd7663df33b_32563801.png imagette283431941762567740 28343195 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28343195 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette283431951762567740 28343196 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28343196 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393335928: '1762567467_1183520_1393334492_3829bb9a316a2cbd19fb6dee1113c6ee_rle_crop_4026725314_0.png', 1393336268: '1762567505_1184348_1393333846_b39eb19f60a8ff5019dbab0c7b28ebca_rle_crop_4026725466_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/9b6bbccc2c49829674768aee0e52e44f_36527675.png change filename to text .imagette283431961762567740/ imagette283431961762567740/1762567505_1184348_1393333846_b39eb19f60a8ff5019dbab0c7b28ebca_rle_crop_4026725466_0.png.png imagette283431961762567740/1762567467_1183520_1393334492_3829bb9a316a2cbd19fb6dee1113c6ee_rle_crop_4026725314_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/7fcc6b962a99442ad21aea3817089432_67975446.png imagette283431961762567740 28343185 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28343185 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393335897: '1762567467_1183520_1393334406_f6398a26995fcfeac0591902d2ba77ce_rle_crop_4026725328_0.png', 1393336233: '1762567505_1184348_1393333954_396296695eaf032101393bd8d8680b6a_rle_crop_4026725441_0.png', 1393336235: '1762567505_1184348_1393333954_396296695eaf032101393bd8d8680b6a_rle_crop_4026725447_0.png', 1393336237: '1762567505_1184348_1393333954_396296695eaf032101393bd8d8680b6a_rle_crop_4026725439_0.png', 1393336240: '1762567505_1184348_1393333954_396296695eaf032101393bd8d8680b6a_rle_crop_4026725440_0.png', 1393336243: '1762567505_1184348_1393333846_b39eb19f60a8ff5019dbab0c7b28ebca_rle_crop_4026725465_0.png', 1393336245: '1762567505_1184348_1393333846_b39eb19f60a8ff5019dbab0c7b28ebca_rle_crop_4026725464_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/856f3a693a67f2b18c406f589f77ca9a_38882945.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/ba1b61c7029b7b560f307a8c9f49318b_56224571.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/d4171cb89c8e248db44f250855422d95_54792987.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/b9d7e9aaa31a6d4cb9391360b9c48e42_10112092.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/73d8a2559e7c002fe7b0464aae0d540f_74691685.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/e85f336a9ee1bb6491db9805166d48d4_90563576.png change filename to text .imagette283431851762567740/ imagette283431851762567740/1762567505_1184348_1393333846_b39eb19f60a8ff5019dbab0c7b28ebca_rle_crop_4026725464_0.png.png imagette283431851762567740/1762567505_1184348_1393333954_396296695eaf032101393bd8d8680b6a_rle_crop_4026725441_0.png.png imagette283431851762567740/1762567505_1184348_1393333954_396296695eaf032101393bd8d8680b6a_rle_crop_4026725447_0.png.png imagette283431851762567740/1762567505_1184348_1393333954_396296695eaf032101393bd8d8680b6a_rle_crop_4026725439_0.png.png imagette283431851762567740/1762567505_1184348_1393333846_b39eb19f60a8ff5019dbab0c7b28ebca_rle_crop_4026725465_0.png.png imagette283431851762567740/1762567467_1183520_1393334406_f6398a26995fcfeac0591902d2ba77ce_rle_crop_4026725328_0.png.png imagette283431851762567740/1762567505_1184348_1393333954_396296695eaf032101393bd8d8680b6a_rle_crop_4026725440_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/32667e2b79f04a5f71d0ceaed80707b2_47518131.png imagette283431851762567740 28343189 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28343189 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393335937: '1762567467_1183520_1393334406_f6398a26995fcfeac0591902d2ba77ce_rle_crop_4026725331_0.png'} change filename to text .imagette283431891762567741/ imagette283431891762567741/1762567467_1183520_1393334406_f6398a26995fcfeac0591902d2ba77ce_rle_crop_4026725331_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/a9f6cbddfa620191cc6c9df7ff16c4f4_67242574.png imagette283431891762567741 28343192 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28343192 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393335917: '1762567467_1183520_1393334578_26518cd6bcee506c3324f3a70be63945_rle_crop_4026725308_0.png', 1393335919: '1762567467_1183520_1393334578_26518cd6bcee506c3324f3a70be63945_rle_crop_4026725309_0.png', 1393336257: '1762567505_1184348_1393333954_396296695eaf032101393bd8d8680b6a_rle_crop_4026725435_0.png', 1393336259: '1762567505_1184348_1393333913_4b014d1e076aa71680527276cd750063_rle_crop_4026725450_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/ce7e4c3b5be159a275c303425fbcfbe5_11242314.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/ffb2f31920833e035e81ce900aafee51_27502418.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/2574696c47ea5bd08177fd4d7e842a02_16848900.png change filename to text .imagette283431921762567741/ imagette283431921762567741/1762567467_1183520_1393334578_26518cd6bcee506c3324f3a70be63945_rle_crop_4026725308_0.png.png imagette283431921762567741/1762567467_1183520_1393334578_26518cd6bcee506c3324f3a70be63945_rle_crop_4026725309_0.png.png imagette283431921762567741/1762567505_1184348_1393333954_396296695eaf032101393bd8d8680b6a_rle_crop_4026725435_0.png.png imagette283431921762567741/1762567505_1184348_1393333913_4b014d1e076aa71680527276cd750063_rle_crop_4026725450_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/49267fd976ea47309d50b91a97c33ba2_40070541.png imagette283431921762567741 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=28343165 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/28343198,28343199,28343200,28343201,28343202,28343203,28343204,28343205,28343206,28343207,28343208,28343209?tags=Teint_Dans_La_Masse,environnement,autre_refus,papier,Carton_brun,kraft,metal,Carton_gris,mal_croppe,plastique,flou,cartonnette your option no_mail is active, we will not send the real mail to your client args[1393336711] : ('0.10938329780791069',) no score found for photo 1393336711 We are sending mail with results at report@fotonower.com args[1393336706] : ('0.10938329780791069',) no score found for photo 1393336706 We are sending mail with results at report@fotonower.com args[1393336703] : ('0.10938329780791069',) no score found for photo 1393336703 We are sending mail with results at report@fotonower.com args[1393336702] : ('0.10938329780791069',) no score found for photo 1393336702 We are sending mail with results at report@fotonower.com args[1393336700] : ('0.10938329780791069',) no score found for photo 1393336700 We are sending mail with results at report@fotonower.com args[1393336689] : ('0.10938329780791069',) no score found for photo 1393336689 We are sending mail with results at report@fotonower.com args[1393336687] : ('0.10938329780791069',) no score found for photo 1393336687 We are sending mail with results at report@fotonower.com args[1393336683] : ('0.10938329780791069',) no score found for photo 1393336683 We are sending mail with results at report@fotonower.com args[1393336679] : ('0.10938329780791069',) no score found for photo 1393336679 We are sending mail with results at report@fotonower.com args[1393336667] : ('0.10938329780791069',) no score found for photo 1393336667 We are sending mail with results at report@fotonower.com args[1393336645] : ('0.10938329780791069',) no score found for photo 1393336645 We are sending mail with results at report@fotonower.com args[1393336452] : ('0.10938329780791069',) no score found for photo 1393336452 We are sending mail with results at report@fotonower.com args[1393336447] : ('0.10938329780791069',) no score found for photo 1393336447 We are sending mail with results at report@fotonower.com args[1393336441] : ('0.10938329780791069',) no score found for photo 1393336441 We are sending mail with results at report@fotonower.com args[1393336437] : ('0.10938329780791069',) no score found for photo 1393336437 We are sending mail with results at report@fotonower.com args[1393336434] : ('0.10938329780791069',) no score found for photo 1393336434 We are sending mail with results at report@fotonower.com refus_total : 0.10938329780791069 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28343165 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_P28343165_08-11-2025_03_09_00.pdf results_Auto_P28343165_08-11-2025_03_09_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28343165_08-11-2025_03_09_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','28343165','results_Auto_P28343165_08-11-2025_03_09_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28343165_08-11-2025_03_09_00.pdf','pdf','','0.18','0.10938329780791069') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28343165]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1393336711, 1393336706, 1393336703, 1393336702, 1393336700, 1393336689, 1393336687, 1393336683, 1393336679, 1393336667, 1393336645, 1393336452, 1393336447, 1393336441, 1393336437, 1393336434] map_info['map_portfolio_photo'] : {28343165: [1393336711, 1393336706, 1393336703, 1393336702, 1393336700, 1393336689, 1393336687, 1393336683, 1393336679, 1393336667, 1393336645, 1393336452, 1393336447, 1393336441, 1393336437, 1393336434, 1393336140, 1393336102, 1393336068, 1393336036, 1393335722, 1393335718, 1393335706, 1393335687, 1393335420, 1393335410, 1393335407, 1393335406, 1393335405, 1393334672, 1393334578, 1393334492, 1393334406, 1393333954, 1393333913, 1393333846]} final : False mtd_id 4302 list_pids : [1393336711, 1393336706, 1393336703, 1393336702, 1393336700, 1393336689, 1393336687, 1393336683, 1393336679, 1393336667, 1393336645, 1393336452, 1393336447, 1393336441, 1393336437, 1393336434] 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, '4021069') ('4302', '28343165', '1393336711', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336706', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336703', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336702', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336700', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336689', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336687', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336683', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336679', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336667', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336645', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336452', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336447', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336441', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336437', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336434', None, None, None, None, None, '4021069') 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', '28343165', '1393336711', None, None, None, None, None, '4021069'), ('4302', '28343165', '1393336706', None, None, None, None, None, '4021069'), ('4302', '28343165', '1393336703', None, None, None, None, None, '4021069'), ('4302', '28343165', '1393336702', None, None, None, None, None, '4021069'), ('4302', '28343165', '1393336700', None, None, None, None, None, '4021069'), ('4302', '28343165', '1393336689', None, None, None, None, None, '4021069'), ('4302', '28343165', '1393336687', None, None, None, None, None, '4021069'), ('4302', '28343165', '1393336683', None, None, None, None, None, '4021069'), ('4302', '28343165', '1393336679', None, None, None, None, None, '4021069'), ('4302', '28343165', '1393336667', None, None, None, None, None, '4021069'), ('4302', '28343165', '1393336645', None, None, None, None, None, '4021069'), ('4302', '28343165', '1393336452', None, None, None, None, None, '4021069'), ('4302', '28343165', '1393336447', None, None, None, None, None, '4021069'), ('4302', '28343165', '1393336441', None, None, None, None, None, '4021069'), ('4302', '28343165', '1393336437', None, None, None, None, None, '4021069'), ('4302', '28343165', '1393336434', None, None, None, None, None, '4021069')] time used for this insertion : 0.014812469482421875 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.0775558948516846 time spend to save output : 0.015063285827636719 total time spend for step 4 : 3.0926191806793213 step5:split_time_score Sat Nov 8 03:09:02 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 : ['28343165'] 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 : [('28343165',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28343165) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1393336434: {'path': 'temp/1762567739_1150727_1393336434_31bcd247be54eaef4bcc92cb6109f89f.jpg', 'extension': 'jpg'}, 1393336437: {'path': 'temp/1762567739_1150727_1393336437_95b2ea92b8e3a19acfeea96cf6678c21.jpg', 'extension': 'jpg'}, 1393336441: {'path': 'temp/1762567739_1150727_1393336441_2b133e1db46e5927ab783c69230886f8.jpg', 'extension': 'jpg'}, 1393336447: {'path': 'temp/1762567739_1150727_1393336447_1b5410308ec01302f34eb3c6f923924c.jpg', 'extension': 'jpg'}, 1393336452: {'path': 'temp/1762567739_1150727_1393336452_7885f501d2baa6bdecc0bf6726b836ba.jpg', 'extension': 'jpg'}, 1393336645: {'path': 'temp/1762567739_1150727_1393336645_eab6d401c5b9e431ff72adf32be49b00.jpg', 'extension': 'jpg'}, 1393336667: {'path': 'temp/1762567739_1150727_1393336667_d2d7e1da8ae72e0e325e2764b0700a4c.jpg', 'extension': 'jpg'}, 1393336679: {'path': 'temp/1762567739_1150727_1393336679_5a54f32a4c4efb54a585982e827e54c0.jpg', 'extension': 'jpg'}, 1393336683: {'path': 'temp/1762567739_1150727_1393336683_fead8ddc181560b8108b354bb9bcc199.jpg', 'extension': 'jpg'}, 1393336687: {'path': 'temp/1762567739_1150727_1393336687_98b2d0fff10ab05d0bf5f067763a2f4d.jpg', 'extension': 'jpg'}, 1393336689: {'path': 'temp/1762567739_1150727_1393336689_efec546f57fc2b03e8bb1aa6559d9482.jpg', 'extension': 'jpg'}, 1393336700: {'path': 'temp/1762567739_1150727_1393336700_91822dd4e50ca44397af15aaf086e750.jpg', 'extension': 'jpg'}, 1393336702: {'path': 'temp/1762567739_1150727_1393336702_599846395a66d5137d4586464eb1af03.jpg', 'extension': 'jpg'}, 1393336703: {'path': 'temp/1762567739_1150727_1393336703_db93bd8f7d153681762ddb8cf1e2f156.jpg', 'extension': 'jpg'}, 1393336706: {'path': 'temp/1762567739_1150727_1393336706_732784351f5dccf46c294f757298fc6f.jpg', 'extension': 'jpg'}, 1393336711: {'path': 'temp/1762567739_1150727_1393336711_ec9c08906d2b9ab27256ab1fdb2cb591.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 = 28343165; (('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_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 28343165 group by h (('03', 36),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28343165 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 (28343165) 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 (28343165) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 08112025 28343165 Nombre de photos uploadées : 36 / 23040 (0%) 08112025 28343165 Nombre de photos taguées (types de déchets): 0 / 36 (0%) 08112025 28343165 Nombre de photos taguées (volume) : 0 / 36 (0%) [{'photo_id': 1393333954, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/396296695eaf032101393bd8d8680b6a.jpg', 'username': None, 'uploaded_at': 1762567267, 'text': 'image_08112025_03_00_14_010212m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1393333913, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/4b014d1e076aa71680527276cd750063.jpg', 'username': None, 'uploaded_at': 1762567267, 'text': 'image_08112025_03_00_24_010137m0.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1393333846, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/b39eb19f60a8ff5019dbab0c7b28ebca.jpg', 'username': None, 'uploaded_at': 1762567267, 'text': 'image_08112025_03_00_34_010142m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1393334672, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/8/e0542039823b04a9267ff572ffedea90.jpg', 'username': None, 'uploaded_at': 1762567327, 'text': 'image_08112025_03_00_44_010141m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ???????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0023779869079589844 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 28343165, '2025-11-08' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-11-08' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2540024,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.20023083686828613 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= 2540024 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2540024, 'dashboard_run_id': 2548150, 'mtr_portfolio_id': 28336003, 'dashboard_result_id': 17030208, '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_P28336003_08-11-2025_00_17_28.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28336011, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28336012, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28336013, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28336014, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28336015, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28336016, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28336017, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28336018, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28336019, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28336020, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28336021, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28336022, 'pht': 3726}}"}, {'dashboat_entry_day': 2540024, 'dashboard_run_id': 2548150, 'mtr_portfolio_id': 28336481, 'dashboard_result_id': 17030209, '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_P28336481_08-11-2025_00_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28336486, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28336487, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28336488, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28336489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28336490, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28336491, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28336492, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28336493, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28336494, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28336495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28336496, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28336497, 'pht': 3726}}"}, {'dashboat_entry_day': 2540024, 'dashboard_run_id': 2548150, 'mtr_portfolio_id': 28337035, 'dashboard_result_id': 17030210, '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_P28337035_08-11-2025_00_46_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28337096, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28337097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28337098, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28337099, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28337100, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28337101, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28337102, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28337103, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28337104, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28337105, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28337106, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28337107, 'pht': 3726}}"}, {'dashboat_entry_day': 2540024, 'dashboard_run_id': 2548150, 'mtr_portfolio_id': 28337671, 'dashboard_result_id': 17030211, '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_P28337671_08-11-2025_01_02_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28337732, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28337733, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28337734, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28337735, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28337736, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28337737, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28337738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28337739, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28337740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28337741, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28337742, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28337743, 'pht': 3726}}"}, {'dashboat_entry_day': 2540024, 'dashboard_run_id': 2548150, 'mtr_portfolio_id': 28339415, 'dashboard_result_id': 17030212, '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_P28339415_08-11-2025_01_48_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28339417, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28339418, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28339419, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28339420, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28339421, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28339422, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28339423, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28339424, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28339425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28339426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28339427, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28339428, 'pht': 3726}}"}, {'dashboat_entry_day': 2540024, 'dashboard_run_id': 2548150, 'mtr_portfolio_id': 28339875, 'dashboard_result_id': 17030213, '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_P28339875_08-11-2025_02_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28339896, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28339897, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28339898, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28339899, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28339900, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28339901, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28339902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28339903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28339904, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28339905, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28339906, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28339907, 'pht': 3726}}"}, {'dashboat_entry_day': 2540024, 'dashboard_run_id': 2548150, 'mtr_portfolio_id': 28340539, 'dashboard_result_id': 17030214, '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_P28340539_08-11-2025_02_16_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28340546, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28340547, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28340548, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28340549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28340550, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28340551, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28340552, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28340553, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28340554, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28340555, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28340556, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28340557, 'pht': 3726}}"}, {'dashboat_entry_day': 2540024, 'dashboard_run_id': 2548150, 'mtr_portfolio_id': 28341213, 'dashboard_result_id': 17030215, '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_P28341213_08-11-2025_02_34_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28341222, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28341223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28341224, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28341225, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28341226, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28341227, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28341228, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28341229, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28341230, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28341231, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28341232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28341233, 'pht': 3726}}"}, {'dashboat_entry_day': 2540024, 'dashboard_run_id': 2548150, 'mtr_portfolio_id': 28341967, 'dashboard_result_id': 17030216, '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_P28341967_08-11-2025_02_46_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28341980, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28341981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28341982, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28341983, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28341984, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28341985, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28341986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28341987, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28341988, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28341989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28341990, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28341992, 'pht': 3726}}"}, {'dashboat_entry_day': 2540024, 'dashboard_run_id': 2548150, 'mtr_portfolio_id': 28342486, 'dashboard_result_id': 17030217, '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_P28342486_08-11-2025_02_58_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28342513, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28342514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28342515, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28342516, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28342517, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28342518, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28342519, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28342520, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28342521, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28342522, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28342523, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28342524, 'pht': 3726}}"}, {'dashboat_entry_day': 2540024, 'dashboard_run_id': 2548150, 'mtr_portfolio_id': 28343165, 'dashboard_result_id': 17030218, '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_P28343165_08-11-2025_03_06_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28343185, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28343186, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28343187, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28343188, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28343189, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28343190, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28343191, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28343192, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28343193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28343194, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28343195, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28343196, '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 = 28336003 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': 4020370, 'mtr_portfolio_id': 28336003, 'created_at': datetime.datetime(2025, 11, 8, 0, 17, 28), 'result': '0.04019632894827077', 'result_long': None, 'result_double': None}] Qualite : 0.04019632894827077 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28336003 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28336003_08-11-2025_00_17_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28336003 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_P28336003_08-11-2025_00_17_28.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28336011, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28336012, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28336013, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28336014, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28336015, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28336016, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28336017, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28336018, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28336019, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28336020, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28336021, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28336022, 'pht': 3726}}" where mtr_portfolio_id = 28336003 and dashboard_run_id = 2548150 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`=28336003 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17030208, 0.04019632894827077, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28336003_08-11-2025_00_17_28.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28336011, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28336012, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28336013, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28336014, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28336015, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28336016, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28336017, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28336018, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28336019, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28336020, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28336021, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28336022, '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 = 28336481 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': 4020414, 'mtr_portfolio_id': 28336481, 'created_at': datetime.datetime(2025, 11, 8, 0, 32, 58), 'result': '0.03956901961259934', 'result_long': None, 'result_double': None}] Qualite : 0.03956901961259934 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28336481 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28336481_08-11-2025_00_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28336481 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_P28336481_08-11-2025_00_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28336486, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28336487, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28336488, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28336489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28336490, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28336491, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28336492, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28336493, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28336494, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28336495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28336496, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28336497, 'pht': 3726}}" where mtr_portfolio_id = 28336481 and dashboard_run_id = 2548150 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`=28336481 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17030209, 0.03956901961259934, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28336481_08-11-2025_00_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28336486, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28336487, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28336488, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28336489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28336490, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28336491, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28336492, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28336493, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28336494, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28336495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28336496, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28336497, '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 = 28337035 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': 4020479, 'mtr_portfolio_id': 28337035, 'created_at': datetime.datetime(2025, 11, 8, 0, 46, 57), 'result': '0.03564186648367525', 'result_long': None, 'result_double': None}] Qualite : 0.03564186648367525 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28337035 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28337035_08-11-2025_00_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28337035 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_P28337035_08-11-2025_00_46_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28337096, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28337097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28337098, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28337099, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28337100, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28337101, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28337102, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28337103, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28337104, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28337105, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28337106, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28337107, 'pht': 3726}}" where mtr_portfolio_id = 28337035 and dashboard_run_id = 2548150 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`=28337035 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17030210, 0.03564186648367525, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28337035_08-11-2025_00_46_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28337096, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28337097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28337098, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28337099, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28337100, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28337101, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28337102, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28337103, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28337104, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28337105, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28337106, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28337107, '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 = 28337671 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': 4020549, 'mtr_portfolio_id': 28337671, 'created_at': datetime.datetime(2025, 11, 8, 1, 2, 30), 'result': '0.0375088666914562', 'result_long': None, 'result_double': None}] Qualite : 0.0375088666914562 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28337671 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28337671_08-11-2025_01_02_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28337671 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_P28337671_08-11-2025_01_02_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28337732, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28337733, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28337734, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28337735, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28337736, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28337737, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28337738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28337739, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28337740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28337741, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28337742, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28337743, 'pht': 3726}}" where mtr_portfolio_id = 28337671 and dashboard_run_id = 2548150 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`=28337671 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17030211, 0.0375088666914562, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28337671_08-11-2025_01_02_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28337732, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28337733, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28337734, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28337735, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28337736, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28337737, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28337738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28337739, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28337740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28337741, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28337742, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28337743, '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 = 28339415 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': 4020699, 'mtr_portfolio_id': 28339415, 'created_at': datetime.datetime(2025, 11, 8, 1, 48, 59), 'result': '0.05205984190432125', 'result_long': None, 'result_double': None}] Qualite : 0.05205984190432125 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28339415 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28339415_08-11-2025_01_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28339415 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_P28339415_08-11-2025_01_48_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28339417, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28339418, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28339419, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28339420, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28339421, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28339422, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28339423, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28339424, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28339425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28339426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28339427, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28339428, 'pht': 3726}}" where mtr_portfolio_id = 28339415 and dashboard_run_id = 2548150 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`=28339415 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17030212, 0.05205984190432125, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28339415_08-11-2025_01_48_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28339417, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28339418, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28339419, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28339420, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28339421, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28339422, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28339423, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28339424, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28339425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28339426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28339427, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28339428, '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 = 28339875 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': 4020735, 'mtr_portfolio_id': 28339875, 'created_at': datetime.datetime(2025, 11, 8, 2, 3), 'result': '0.04140678272944849', 'result_long': None, 'result_double': None}] Qualite : 0.04140678272944849 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28339875 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28339875_08-11-2025_02_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28339875 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_P28339875_08-11-2025_02_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28339896, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28339897, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28339898, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28339899, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28339900, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28339901, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28339902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28339903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28339904, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28339905, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28339906, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28339907, 'pht': 3726}}" where mtr_portfolio_id = 28339875 and dashboard_run_id = 2548150 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`=28339875 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17030213, 0.04140678272944849, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28339875_08-11-2025_02_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28339896, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28339897, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28339898, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28339899, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28339900, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28339901, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28339902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28339903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28339904, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28339905, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28339906, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28339907, '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 = 28340539 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': 4020797, 'mtr_portfolio_id': 28340539, 'created_at': datetime.datetime(2025, 11, 8, 2, 16, 57), 'result': '0.05072146864932478', 'result_long': None, 'result_double': None}] Qualite : 0.05072146864932478 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28340539 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28340539_08-11-2025_02_16_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28340539 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_P28340539_08-11-2025_02_16_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28340546, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28340547, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28340548, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28340549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28340550, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28340551, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28340552, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28340553, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28340554, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28340555, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28340556, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28340557, 'pht': 3726}}" where mtr_portfolio_id = 28340539 and dashboard_run_id = 2548150 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`=28340539 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17030214, 0.05072146864932478, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28340539_08-11-2025_02_16_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28340546, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28340547, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28340548, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28340549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28340550, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28340551, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28340552, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28340553, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28340554, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28340555, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28340556, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28340557, '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 = 28341213 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': 4020872, 'mtr_portfolio_id': 28341213, 'created_at': datetime.datetime(2025, 11, 8, 2, 34, 58), 'result': '0.04714598692392764', 'result_long': None, 'result_double': None}] Qualite : 0.04714598692392764 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28341213 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28341213_08-11-2025_02_34_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28341213 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_P28341213_08-11-2025_02_34_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28341222, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28341223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28341224, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28341225, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28341226, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28341227, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28341228, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28341229, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28341230, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28341231, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28341232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28341233, 'pht': 3726}}" where mtr_portfolio_id = 28341213 and dashboard_run_id = 2548148 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`=28341213 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17030215, 0.04714598692392764, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28341213_08-11-2025_02_34_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28341222, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28341223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28341224, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28341225, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28341226, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28341227, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28341228, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28341229, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28341230, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28341231, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28341232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28341233, '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 = 28341967 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': 4020945, 'mtr_portfolio_id': 28341967, 'created_at': datetime.datetime(2025, 11, 8, 2, 46, 59), 'result': '0.04329548973262093', 'result_long': None, 'result_double': None}] Qualite : 0.04329548973262093 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28341967 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28341967_08-11-2025_02_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28341967 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_P28341967_08-11-2025_02_46_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28341980, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28341981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28341982, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28341983, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28341984, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28341985, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28341986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28341987, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28341988, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28341989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28341990, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28341992, 'pht': 3726}}" where mtr_portfolio_id = 28341967 and dashboard_run_id = 2548148 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`=28341967 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17030216, 0.04329548973262093, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28341967_08-11-2025_02_46_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28341980, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28341981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28341982, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28341983, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28341984, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28341985, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28341986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28341987, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28341988, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28341989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28341990, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28341992, '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 = 28342486 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': 4020989, 'mtr_portfolio_id': 28342486, 'created_at': datetime.datetime(2025, 11, 8, 2, 58, 58), 'result': '0.03263845655033121', 'result_long': None, 'result_double': None}] Qualite : 0.03263845655033121 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28342486 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28342486_08-11-2025_02_58_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28342486 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_P28342486_08-11-2025_02_58_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28342513, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28342514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28342515, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28342516, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28342517, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28342518, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28342519, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28342520, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28342521, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28342522, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28342523, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28342524, 'pht': 3726}}" where mtr_portfolio_id = 28342486 and dashboard_run_id = 2548148 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`=28342486 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17030217, 0.03263845655033121, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28342486_08-11-2025_02_58_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28342513, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28342514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28342515, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28342516, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28342517, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28342518, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28342519, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28342520, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28342521, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28342522, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28342523, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28342524, '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 = 28343165 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': 4021069, 'mtr_portfolio_id': 28343165, 'created_at': datetime.datetime(2025, 11, 8, 3, 8, 59), 'result': '0.10938329780791069', 'result_long': None, 'result_double': None}] Qualite : 0.10938329780791069 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28343165 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28343165_08-11-2025_03_09_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28343165 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_P28343165_08-11-2025_03_09_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28343185, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28343186, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28343187, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28343188, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28343189, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28343190, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28343191, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28343192, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28343193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28343194, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28343195, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28343196, 'pht': 3726}}" where mtr_portfolio_id = 28343165 and dashboard_run_id = 2548148 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`=28343165 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17030218, 0.10938329780791069, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28343165_08-11-2025_03_09_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28343185, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28343186, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28343187, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28343188, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28343189, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28343190, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28343191, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28343192, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28343193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28343194, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28343195, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28343196, '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 (28336003,28336481,28337035,28337671,28339415,28339875,28340539,28341213,28341967,28342486,28343165) result : ((1393294530,), (1393294539,), (1393294562,), (1393294691,), (1393294724,), (1393294758,), (1393294793,), (1393294834,), (1393295403,), (1393295465,), (1393295525,), (1393295559,), (1393295753,), (1393295757,), (1393295790,), (1393295824,), (1393295863,), (1393296048,), (1393296080,), (1393296089,), (1393296153,), (1393296156,), (1393296160,), (1393296162,), (1393296164,), (1393296166,), (1393296191,), (1393296193,), (1393296267,), (1393296301,), (1393296332,), (1393296367,), (1393296405,), (1393296440,), (1393296792,), (1393296825,), (1393296860,), (1393296895,), (1393296941,), (1393297513,), (1393297554,), (1393297592,), (1393298019,), (1393298046,), (1393298050,), (1393298280,), (1393298283,), (1393298286,), (1393298289,), (1393298355,), (1393298388,), (1393298423,), (1393298818,), (1393298848,), (1393299117,), (1393299131,), (1393299146,), (1393299214,), (1393299212,), (1393299213,), (1393299255,), (1393299256,), (1393299257,), (1393299260,), (1393299535,), (1393299566,), (1393299571,), (1393299871,), (1393299910,), (1393299944,), (1393300249,), (1393300253,), (1393300255,), (1393300257,), (1393300260,), (1393300543,), (1393300547,), (1393300550,), (1393300554,), (1393300559,), (1393300590,), (1393300592,), (1393300593,), (1393300595,), (1393300598,), (1393300630,), (1393300631,), (1393300632,), (1393300634,), (1393300638,), (1393300642,), (1393300691,), (1393300693,), (1393300694,), (1393300724,), (1393300760,), (1393300793,), (1393300828,), (1393300861,), (1393300900,), (1393301025,), (1393301058,), (1393301193,), (1393301224,), (1393301269,), (1393301326,), (1393301410,), (1393301491,), (1393301916,), (1393302013,), (1393302108,), (1393302194,), (1393302285,), (1393302344,), (1393302888,), (1393302926,), (1393302962,), (1393302998,), (1393303031,), (1393303062,), (1393303248,), (1393303320,), (1393303472,), (1393303506,), (1393303536,), (1393303540,), (1393303543,), (1393303583,), (1393303585,), (1393303587,), (1393303588,), (1393303617,), (1393303648,), (1393304007,), (1393304011,), (1393304086,), (1393304109,), (1393304120,), (1393304123,), (1393304129,), (1393303942,), (1393303964,), (1393303994,), (1393304002,), (1393304159,), (1393304171,), (1393304183,), (1393304312,), (1393304313,), (1393304314,), (1393304316,), (1393304319,), (1393304424,), (1393304431,), (1393304436,), (1393304440,), (1393304444,), (1393304453,), (1393304455,), (1393304457,), (1393304466,), (1393304474,), (1393304484,), (1393304495,), (1393304498,), (1393304501,), (1393304510,), (1393304531,), (1393304536,), (1393304540,), (1393304554,), (1393304562,), (1393304567,), (1393304570,), (1393304600,), (1393304624,), (1393304635,), (1393304642,), (1393304646,), (1393304707,), (1393304739,), (1393304772,), (1393304814,), (1393304849,), (1393304885,), (1393305003,), (1393305047,), (1393305136,), (1393305138,), (1393305163,), (1393305189,), (1393305223,), (1393305397,), (1393305400,), (1393305402,), (1393305405,), (1393305410,), (1393305450,), (1393305643,), (1393305678,), (1393305712,), (1393305734,), (1393305742,), (1393305802,), (1393305803,), (1393305805,), (1393305808,), (1393305828,), (1393305833,), (1393305838,), (1393305842,), (1393305854,), (1393306107,), (1393306132,), (1393306162,), (1393306178,), (1393306192,), (1393306204,), (1393306241,), (1393306239,), (1393306240,), (1393306264,), (1393306267,), (1393306268,), (1393306270,), (1393306273,), (1393306274,), (1393306351,), (1393306353,), (1393306355,), (1393306362,), (1393306401,), (1393306846,), (1393306879,), (1393306893,), (1393306895,), (1393306898,), (1393307097,), (1393307121,), (1393307130,), (1393307134,), (1393307141,), (1393307382,), (1393307413,), (1393307499,), (1393307502,), (1393307504,), (1393307506,), (1393307509,), (1393307543,), (1393307544,), (1393307545,), (1393307548,), (1393307551,), (1393307634,), (1393307698,), (1393307700,), (1393307754,), (1393307757,), (1393307760,), (1393307763,), (1393308022,), (1393308069,), (1393308497,), (1393308500,), (1393308503,), (1393308507,), (1393308509,), (1393308511,), (1393308534,), (1393317017,), (1393317049,), (1393317402,), (1393317432,), (1393317462,), (1393317493,), (1393317500,), (1393317722,), (1393317725,), (1393317728,), (1393317751,), (1393317957,), (1393317959,), (1393317961,), (1393318152,), (1393318161,), (1393318162,), (1393318164,), (1393318166,), (1393318184,), (1393318313,), (1393318346,), (1393318383,), (1393318530,), (1393318568,), (1393318600,), (1393318631,), (1393318668,), (1393318949,), (1393318951,), (1393318952,), (1393318970,), (1393318978,), (1393319279,), (1393319299,), (1393319300,), (1393319309,), (1393319585,), (1393319615,), (1393319642,), (1393319676,), (1393319707,), (1393319760,), (1393319986,), (1393320047,), (1393320123,), (1393320181,), (1393320415,), (1393320595,), (1393320626,), (1393320662,), (1393320698,), (1393320731,), (1393320888,), (1393320889,), (1393320891,), (1393320893,), (1393320905,), (1393320907,), (1393320909,), (1393320910,), (1393320930,), (1393321069,), (1393320928,), (1393320929,), (1393320956,), (1393320972,), (1393320973,), (1393320980,), (1393320983,), (1393320986,), (1393321033,), (1393321034,), (1393321086,), (1393321088,), (1393321091,), (1393321399,), (1393321430,), (1393321460,), (1393321687,), (1393321766,), (1393321811,), (1393321815,), (1393322039,), (1393322040,), (1393322041,), (1393322069,), (1393322071,), (1393322075,), (1393322172,), (1393322209,), (1393322231,), (1393322236,), (1393322249,), (1393322282,), (1393322331,), (1393322332,), (1393322333,), (1393322334,), (1393322336,), (1393322352,), (1393322353,), (1393322354,), (1393322368,), (1393322494,), (1393322526,), (1393322559,), (1393322593,), (1393322630,), (1393322663,), (1393322755,), (1393322761,), (1393322850,), (1393322852,), (1393322873,), (1393322892,), (1393322896,), (1393322999,), (1393323001,), (1393323005,), (1393323022,), (1393323055,), (1393323206,), (1393323239,), (1393323270,), (1393323417,), (1393323406,), (1393323409,), (1393323411,), (1393323413,), (1393323688,), (1393323726,), (1393323761,), (1393323805,), (1393323824,), (1393323867,), (1393324151,), (1393324153,), (1393324168,), (1393324191,), (1393324274,), (1393324276,), (1393324278,), (1393324279,), (1393324310,), (1393324324,), (1393324579,), (1393324580,), (1393324581,), (1393324583,), (1393324587,), (1393324607,), (1393324609,), (1393324612,), (1393324616,), (1393324620,), (1393324621,), (1393324666,), (1393324669,), (1393324672,), (1393324678,), (1393324680,), (1393324696,), (1393324698,), (1393324701,), (1393324712,), (1393324719,), (1393324879,), (1393324908,), (1393324939,), (1393324971,), (1393324975,), (1393324978,), (1393325242,), (1393325300,), (1393325371,), (1393325404,), (1393325437,), (1393325659,), (1393325721,), (1393326108,), (1393326120,), (1393326131,), (1393326139,), (1393326303,), (1393326306,), (1393326309,), (1393326417,), (1393326435,), (1393326436,), (1393326462,), (1393326573,), (1393326574,), (1393326603,), (1393326595,), (1393326597,), (1393326599,), (1393326708,), (1393326810,), (1393326811,), (1393326812,), (1393326840,), (1393326842,), (1393326844,), (1393326847,), (1393326851,), (1393326901,), (1393326931,), (1393326966,), (1393327203,), (1393327204,), (1393327205,), (1393327208,), (1393327212,), (1393327216,), (1393327234,), (1393327237,), (1393327286,), (1393327288,), (1393327289,), (1393327291,), (1393327294,), (1393327564,), (1393327566,), (1393327568,), (1393327571,), (1393327576,), (1393327731,), (1393327733,), (1393327757,), (1393327794,), (1393327827,), (1393327841,), (1393327842,), (1393327843,), (1393328121,), (1393328122,), (1393328123,), (1393328125,), (1393328128,), (1393328342,), (1393328352,), (1393328355,), (1393328357,), (1393328361,), (1393328426,), (1393328460,), (1393328492,), (1393328647,), (1393328749,), (1393328736,), (1393328737,), (1393328740,), (1393328745,), (1393328793,), (1393328796,), (1393328799,), (1393328802,), (1393328804,), (1393328807,), (1393328832,), (1393328840,), (1393328843,), (1393328845,), (1393328945,), (1393328949,), (1393329214,), (1393329215,), (1393329238,), (1393329296,), (1393329298,), (1393329345,), (1393329355,), (1393329360,), (1393329365,), (1393329368,), (1393329380,), (1393329592,), (1393329625,), (1393329644,), (1393329647,), (1393329765,), (1393329767,), (1393329940,), (1393329941,), (1393329959,), (1393330014,), (1393330054,), (1393330172,), (1393330178,), (1393330180,), (1393330183,), (1393330185,), (1393330201,), (1393330203,), (1393330204,), (1393330205,), (1393330266,), (1393330267,), (1393330508,), (1393330518,), (1393330521,), (1393330530,), (1393330568,), (1393330669,), (1393330665,), (1393330667,), (1393330668,), (1393330689,), (1393330691,), (1393330693,), (1393330768,), (1393330770,), (1393330773,), (1393330775,), (1393330779,), (1393330782,), (1393330806,), (1393330808,), (1393330810,), (1393330813,), (1393330817,), (1393330846,), (1393330849,), (1393330850,), (1393330852,), (1393330856,), (1393331016,), (1393331058,), (1393331088,), (1393331120,), (1393331283,), (1393331315,), (1393331336,), (1393331339,), (1393331344,), (1393331346,), (1393331608,), (1393331611,), (1393331639,), (1393331643,), (1393331918,), (1393331944,), (1393331945,), (1393331946,), (1393331948,), (1393332042,), (1393332045,), (1393332067,), (1393332101,), (1393332123,), (1393332233,), (1393332243,), (1393332244,), (1393332272,), (1393332274,), (1393332320,), (1393332321,), (1393332324,), (1393332342,), (1393332354,), (1393332376,), (1393332379,), (1393332382,), (1393332386,), (1393333294,), (1393333315,), (1393333322,), (1393334003,), (1393333846,), (1393333913,), (1393333954,), (1393334406,), (1393334492,), (1393334578,), (1393334672,), (1393335405,), (1393335406,), (1393335407,), (1393335410,), (1393335420,), (1393335687,), (1393335706,), (1393335718,), (1393335722,), (1393336036,), (1393336068,), (1393336102,), (1393336140,), (1393336434,), (1393336437,), (1393336441,), (1393336447,), (1393336452,), (1393336645,), (1393336667,), (1393336679,), (1393336683,), (1393336687,), (1393336689,), (1393336700,), (1393336702,), (1393336703,), (1393336706,), (1393336711,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'08112025': {'nb_upload': 36, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28343165]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1393336711, 1393336706, 1393336703, 1393336702, 1393336700, 1393336689, 1393336687, 1393336683, 1393336679, 1393336667, 1393336645, 1393336452, 1393336447, 1393336441, 1393336437, 1393336434] map_info['map_portfolio_photo'] : {28343165: [1393336711, 1393336706, 1393336703, 1393336702, 1393336700, 1393336689, 1393336687, 1393336683, 1393336679, 1393336667, 1393336645, 1393336452, 1393336447, 1393336441, 1393336437, 1393336434, 1393336140, 1393336102, 1393336068, 1393336036, 1393335722, 1393335718, 1393335706, 1393335687, 1393335420, 1393335410, 1393335407, 1393335406, 1393335405, 1393334672, 1393334578, 1393334492, 1393334406, 1393333954, 1393333913, 1393333846]} final : True mtd_id 4302 list_pids : [1393336711, 1393336706, 1393336703, 1393336702, 1393336700, 1393336689, 1393336687, 1393336683, 1393336679, 1393336667, 1393336645, 1393336452, 1393336447, 1393336441, 1393336437, 1393336434] Looping around the photos to save general results len do output : 1 /28343165Didn'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, '4021069') ('4302', '28343165', '1393336711', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336706', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336703', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336702', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336700', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336689', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336687', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336683', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336679', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336667', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336645', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336452', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336447', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336441', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336437', None, None, None, None, None, '4021069') ('4302', None, None, None, None, None, None, None, '4021069') ('4302', '28343165', '1393336434', None, None, None, None, None, '4021069') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 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, '28343165', 'None', None, None, None, None, '4021069'), ('4302', '28343165', '1393336711', None, None, None, None, None, '4021069'), ('4302', '28343165', '1393336706', None, None, None, None, None, '4021069'), ('4302', '28343165', '1393336703', None, None, None, None, None, '4021069'), ('4302', '28343165', '1393336702', None, None, None, None, None, '4021069'), ('4302', '28343165', '1393336700', None, None, None, None, None, '4021069'), ('4302', '28343165', '1393336689', None, None, None, None, None, '4021069'), ('4302', '28343165', '1393336687', None, None, None, None, None, '4021069'), ('4302', '28343165', '1393336683', None, None, None, None, None, '4021069'), ('4302', '28343165', '1393336679', None, None, None, None, None, '4021069'), ('4302', '28343165', '1393336667', None, None, None, None, None, '4021069'), ('4302', '28343165', '1393336645', None, None, None, None, None, '4021069'), ('4302', '28343165', '1393336452', None, None, None, None, None, '4021069'), ('4302', '28343165', '1393336447', None, None, None, None, None, '4021069'), ('4302', '28343165', '1393336441', None, None, None, None, None, '4021069'), ('4302', '28343165', '1393336437', None, None, None, None, None, '4021069'), ('4302', '28343165', '1393336434', None, None, None, None, None, '4021069')] time used for this insertion : 0.015935182571411133 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.8956897258758545 time spend to save output : 0.016202688217163086 total time spend for step 5 : 0.9118924140930176 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 (4021069) 2.17user 2.42system 0:08.87elapsed 51%CPU (0avgtext+0avgdata 159928maxresident)k 1344inputs+11000outputs (30major+64223minor)pagefaults 0swaps